diff --git a/Directory.Build.props b/Directory.Build.props new file mode 100644 index 0000000..e787b9c --- /dev/null +++ b/Directory.Build.props @@ -0,0 +1,31 @@ + + + + + 0 + 8 + 3 + 3 + + + $([MSBuild]::Add($(MSB4U_RevisionVersion), 1)) + + $(MSB4U_MajorVersion).$(MSB4U_MinorVersion).$(MSB4U_RevisionVersion) + + $(MSB4U_Version)-$(BUILD_BUILDID) + + $(MSB4U_Version) + $(MSB4U_MajorVersion).$(MSB4U_MinorVersion) + $(MSB4U_AssemblyVersion).$(MSB4U_RevisionVersion).0 + $(MSB4U_AssemblyVersion).$(MSB4U_RevisionVersion).$(BUILD_BUILDID) + + $(MSB4U_MajorVersion).$(MSB4U_MinorVersion).$(MSB4U_RevisionVersion) + [$(MSB4U_MajorVersion).$(MSB4U_MinorVersion).$(MSB4U_RevisionVersion_PreIncrement), $(MSB4U_MajorVersion).$(MSB4U_MinorVersion).$(MSB4U_RevisionVersion)] + + + \ No newline at end of file diff --git a/Samples/SimpleNuGetDependency.Unity/Assets/NewtonsoftDependency/NewtonsoftDependency.csproj b/Samples/SimpleNuGetDependency.Unity/Assets/NewtonsoftDependency/NewtonsoftDependency.csproj index 4f760f3..2583c70 100644 --- a/Samples/SimpleNuGetDependency.Unity/Assets/NewtonsoftDependency/NewtonsoftDependency.csproj +++ b/Samples/SimpleNuGetDependency.Unity/Assets/NewtonsoftDependency/NewtonsoftDependency.csproj @@ -17,7 +17,7 @@ - + all runtime; build; native; contentfiles; analyzers diff --git a/Source/MSBuildTools.Unity.NuGet/MSBuildForUnity.csproj b/Source/MSBuildTools.Unity.NuGet/MSBuildForUnity.csproj index 017c6b6..596cc99 100644 --- a/Source/MSBuildTools.Unity.NuGet/MSBuildForUnity.csproj +++ b/Source/MSBuildTools.Unity.NuGet/MSBuildForUnity.csproj @@ -24,23 +24,16 @@ - - 0 - - - 8 - - - 3 + + $(MSB4U_MajorVersion) + $(MSB4U_MinorVersion) + $(MSB4U_RevisionVersion) - $(MajorVersion).$(MinorVersion).$(RevisionVersion) - - $(Version)-$(BUILD_BUILDID) - - $(Version) - $(MajorVersion).$(MinorVersion) - $(AssemblyVersion).$(RevisionVersion).0 - $(AssemblyVersion).$(RevisionVersion).$(BUILD_BUILDID) + $(MSB4U_Version) + + $(MSB4U_PackageVersion) + $(MSB4U_AssemblyVersion) + $(MSB4U_AssemblyFileVersion)