diff --git a/Directory.Build.props b/Directory.Build.props index f0a3dd1ef..43483b3d3 100644 --- a/Directory.Build.props +++ b/Directory.Build.props @@ -4,8 +4,9 @@ Debug <_OutputPath>$(MSBuildThisFileDirectory)bin\Build$(Configuration)\ + true - + cs;de;es;fr;it;ja;ko;pl;pt-BR;ru;tr;zh-Hans;zh-Hant true @@ -75,7 +76,7 @@ <_RunJNIEnvGen Condition=" '$(JIBuildingForNetCoreApp)' == 'True' ">$(DotnetToolPath) "$(_JNIEnvGenPath)" <_RunJNIEnvGen Condition=" '$(JIBuildingForNetCoreApp)' != 'True' ">$(Runtime) "$(_JNIEnvGenPath)" - + @@ -84,4 +85,21 @@ + + + + + + main + false + + + + + $(GitSemVerMajor).$(GitSemVerMinor).$(GitSemVerPatch) + $(Version); git-rev-head:$(GitCommit); git-branch:$(GitBranch) + Microsoft Corporation + Microsoft Corporation + + diff --git a/GitInfo.txt b/GitInfo.txt new file mode 100644 index 000000000..ceab6e11e --- /dev/null +++ b/GitInfo.txt @@ -0,0 +1 @@ +0.1 \ No newline at end of file diff --git a/build-tools/automation/azure-pipelines.yaml b/build-tools/automation/azure-pipelines.yaml index 6888adaf8..10c5cb1f0 100644 --- a/build-tools/automation/azure-pipelines.yaml +++ b/build-tools/automation/azure-pipelines.yaml @@ -58,7 +58,7 @@ jobs: solution: Java.Interop.sln configuration: $(Build.Configuration) msbuildArguments: /restore - + - task: MSBuild@1 displayName: MSBuild RunNUnitTests.targets inputs: @@ -93,7 +93,7 @@ jobs: runNativeDotnetTests: true - template: templates\fail-on-issue.yaml - + - job: mac_build displayName: Mac - Mono pool: @@ -114,10 +114,10 @@ jobs: - script: make prepare CONFIGURATION=$(Build.Configuration) JI_MAX_JDK=$(MaxJdkVersion) displayName: make prepare - + - script: make all CONFIGURATION=$(Build.Configuration) JI_MAX_JDK=$(MaxJdkVersion) displayName: make all - + - script: | r=0 make run-all-tests CONFIGURATION=$(Build.Configuration) JI_MAX_JDK=$(MaxJdkVersion) || r=$? @@ -139,7 +139,7 @@ jobs: SourceFolder: $(System.DefaultWorkingDirectory) Contents: | xatb.jar - bin.zip + bin.zip TargetFolder: $(Build.ArtifactStagingDirectory) condition: succeededOrFailed() @@ -148,7 +148,7 @@ jobs: inputs: ArtifactName: debug condition: succeededOrFailed() - + - job: mac_dotnet_build displayName: Mac - .NET Core pool: @@ -161,12 +161,12 @@ jobs: submodules: recursive - template: templates\install-dependencies.yaml - + - script: make prepare-core CONFIGURATION=$(Build.Configuration) JI_MAX_JDK=$(MaxJdkVersion) displayName: make prepare-core - + - template: templates\core-build.yaml - + - template: templates\core-tests.yaml parameters: runNativeTests: true diff --git a/src/Java.Interop.Dynamic/Java.Interop.Dynamic.csproj b/src/Java.Interop.Dynamic/Java.Interop.Dynamic.csproj index 0204f38b3..228da5b2a 100644 --- a/src/Java.Interop.Dynamic/Java.Interop.Dynamic.csproj +++ b/src/Java.Interop.Dynamic/Java.Interop.Dynamic.csproj @@ -7,9 +7,6 @@ true ..\..\product.snk Java.Interop.Dynamic - Microsoft Corporation - Microsoft Corporation - 0.1.0.0 $(ToolOutputFullPath) diff --git a/src/Java.Interop.Export/Java.Interop.Export.csproj b/src/Java.Interop.Export/Java.Interop.Export.csproj index 8d923e92d..b1dd39bd6 100644 --- a/src/Java.Interop.Export/Java.Interop.Export.csproj +++ b/src/Java.Interop.Export/Java.Interop.Export.csproj @@ -7,9 +7,6 @@ true ..\..\product.snk Java.Interop.Export - Microsoft Corporation - Microsoft Corporation - 0.1.0.0 $(ToolOutputFullPath) diff --git a/src/Java.Interop.GenericMarshaler/Java.Interop.GenericMarshaler.csproj b/src/Java.Interop.GenericMarshaler/Java.Interop.GenericMarshaler.csproj index 62da24d00..1b69c773e 100644 --- a/src/Java.Interop.GenericMarshaler/Java.Interop.GenericMarshaler.csproj +++ b/src/Java.Interop.GenericMarshaler/Java.Interop.GenericMarshaler.csproj @@ -7,9 +7,6 @@ true ..\..\product.snk Java.Interop.GenericMarshaler - Microsoft Corporation - Microsoft Corporation - 0.1.0.0 $(ToolOutputFullPath) diff --git a/src/Java.Interop.Tools.JavaSource/Java.Interop.Tools.JavaSource.csproj b/src/Java.Interop.Tools.JavaSource/Java.Interop.Tools.JavaSource.csproj index ea4be696a..9dce7a0ac 100644 --- a/src/Java.Interop.Tools.JavaSource/Java.Interop.Tools.JavaSource.csproj +++ b/src/Java.Interop.Tools.JavaSource/Java.Interop.Tools.JavaSource.csproj @@ -7,9 +7,6 @@ INTERNAL_NULLABLE_ATTRIBUTES {5C0B3562-8DA0-4726-9762-75B9709ED6B7} Java.Interop.Tools.JavaSource - Microsoft Corporation - Microsoft Corporation - 0.1.0.0 $(ToolOutputFullPath) diff --git a/src/Java.Interop/Java.Interop.csproj b/src/Java.Interop/Java.Interop.csproj index 263a61de3..e61282d0e 100644 --- a/src/Java.Interop/Java.Interop.csproj +++ b/src/Java.Interop/Java.Interop.csproj @@ -22,7 +22,6 @@ ..\..\product.snk INTEROP;FEATURE_JNIENVIRONMENT_JI_PINVOKES;FEATURE_JNIOBJECTREFERENCE_INTPTRS;INTERNAL_NULLABLE_ATTRIBUTES;$(JavaInteropDefineConstants) true - false $(BaseIntermediateOutputPath)$(Configuration)\$(TargetFramework.ToLowerInvariant())\ $(ToolOutputFullPath) $(ToolOutputFullPath)Java.Interop.xml diff --git a/src/Java.Interop/Properties/AssemblyInfo.cs b/src/Java.Interop/Properties/AssemblyInfo.cs index 5222403e5..5d33a80b0 100644 --- a/src/Java.Interop/Properties/AssemblyInfo.cs +++ b/src/Java.Interop/Properties/AssemblyInfo.cs @@ -4,15 +4,9 @@ [assembly: DefaultDllImportSearchPathsAttribute (DllImportSearchPath.SafeDirectories | DllImportSearchPath.AssemblyDirectory)] -[assembly: AssemblyTitle ("Java.Interop")] [assembly: AssemblyDescription ("")] [assembly: AssemblyCulture ("")] -[assembly: AssemblyConfiguration ("")] -[assembly: AssemblyCompany ("Microsoft Corporation")] -[assembly: AssemblyCopyright ("Microsoft Corporation")] -[assembly: AssemblyProduct ("")] -[assembly: AssemblyTrademark ("Microsoft Corporation")] -[assembly: AssemblyVersion ("0.1.0.0")] + [assembly: AssemblyMetadata ("IsTrimmable", "True")] [assembly: InternalsVisibleTo ( diff --git a/tests/Java.Interop-Tests/Java.Interop-Tests.csproj b/tests/Java.Interop-Tests/Java.Interop-Tests.csproj index a04402fd4..112c6e0c3 100644 --- a/tests/Java.Interop-Tests/Java.Interop-Tests.csproj +++ b/tests/Java.Interop-Tests/Java.Interop-Tests.csproj @@ -4,6 +4,8 @@ net472;net6.0 false true + true + ..\..\product.snk diff --git a/tools/generator/generator.csproj b/tools/generator/generator.csproj index e79026b35..79e85def7 100644 --- a/tools/generator/generator.csproj +++ b/tools/generator/generator.csproj @@ -26,7 +26,7 @@ utils\XmlExtensions.cs - +