Skip to content

Commit bf60529

Browse files
author
Andrei Borodin
authored
Final Prep for Release (#66)
* Attempting to not produce a prerelease versioned NuGet package. * Fixing typo * Trying to use current branch * Trying to use current branch * Fixing typo * Fixed source branch parameter * Update UPM to only increment if not a release branch * Preparing for release of 0.8.1
1 parent bf61dcc commit bf60529

File tree

7 files changed

+10
-10
lines changed

7 files changed

+10
-10
lines changed

AzurePipelines/Publish.UPM.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ pool:
1616
steps:
1717
- task: Npm@1
1818
# Only update the version on master branch
19-
condition: eq(variables['Build.SourceBranch'], 'refs/heads/master')
19+
condition: not(startsWith(variables['Build.SourceBranch'], 'refs/heads/release/'))
2020
inputs:
2121
command: 'custom'
2222
customCommand: --no-git-tag-version version prerelease --preid=$(Build.BuildNumber)

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ This scenario leverages the MSBuildForUnity [Project Builder](#msbuild-project-b
6868
```
6969
- Add the following to the `dependencies` section of the file:
7070
```json
71-
"com.microsoft.msbuildforunity": "0.1.1-20190816.2.0"
71+
"com.microsoft.msbuildforunity": "0.8.1"
7272
```
7373
1. Create a "SDK style" MSBuild project (e.g. csproj) somewhere under your `Assets` directory of your Unity project that references the `MSBuildForUnity` NuGet package. Here is an example:
7474
```xml
@@ -77,7 +77,7 @@ This scenario leverages the MSBuildForUnity [Project Builder](#msbuild-project-b
7777
<TargetFramework>netstandard2.0</TargetFramework>
7878
</PropertyGroup>
7979
<ItemGroup>
80-
<PackageReference Include="MSBuildForUnity" Version="1.0.0">
80+
<PackageReference Include="MSBuildForUnity" Version="0.8.1">
8181
<PrivateAssets>all</PrivateAssets>
8282
<IncludeAssets>runtime; build; native; contentfiles; analyzers</IncludeAssets>
8383
</PackageReference>

Samples/SimpleNuGetDependency.Unity/Assets/NewtonsoftDependency/NewtonsoftDependency.csproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
</PropertyGroup>
1818

1919
<ItemGroup>
20-
<PackageReference Include="MSBuildForUnity" Version="[0.8.0-*, 0.8.0]">
20+
<PackageReference Include="MSBuildForUnity" Version="[0.8.1-*, 0.8.1]">
2121
<PrivateAssets>all</PrivateAssets>
2222
<IncludeAssets>runtime; build; native; contentfiles; analyzers</IncludeAssets>
2323
</PackageReference>

Source/MSBuildTools.Unity.NuGet/MSBuildForUnity.csproj

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -31,16 +31,16 @@
3131
<MinorVersion>8</MinorVersion>
3232

3333
<!-- Revision (semver Patch) version is hard-coded and should be incremented when a bug fix is made.-->
34-
<RevisionVersion>0</RevisionVersion>
34+
<RevisionVersion>1</RevisionVersion>
3535

3636
<Version>$(MajorVersion).$(MinorVersion).$(RevisionVersion)</Version>
3737
<!-- Version is based on Major.Minor.Revision as defined above, however, in a lab BUILD_BUILDID will be set so we pull in that as the pre-release version. -->
38-
<Version Condition="'$(BUILD_BUILDID)' != ''">$(Version)-$(BUILD_BUILDID)</Version>
38+
<Version Condition="'$(BUILD_BUILDID)' != '' And !$(BUILD_SOURCEBRANCH.StartsWith('refs/heads/release/'))">$(Version)-$(BUILD_BUILDID)</Version>
3939

4040
<PackageVersion>$(Version)</PackageVersion>
4141
<AssemblyVersion>$(MajorVersion).$(MinorVersion)</AssemblyVersion>
4242
<AssemblyFileVersion>$(AssemblyVersion).$(RevisionVersion).0</AssemblyFileVersion>
43-
<AssemblyFileVersion Condition="'$(BUILD_BUILDID)' != ''">$(AssemblyVersion).$(RevisionVersion).$(BUILD_BUILDID)</AssemblyFileVersion>
43+
<AssemblyFileVersion Condition="'$(BUILD_BUILDID)' != '' And !$(BUILD_SOURCEBRANCH.StartsWith('refs/heads/release/'))">$(AssemblyVersion).$(RevisionVersion).$(BUILD_BUILDID)</AssemblyFileVersion>
4444
</PropertyGroup>
4545

4646
<ItemGroup>

Source/MSBuildTools.Unity/Packages/com.microsoft.msbuildforunity/Editor/ProjectGenerator/MSBuildTemplates/DependenciesProjectTemplate.g.props.template

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020
</PropertyGroup>
2121

2222
<ItemGroup>
23-
<PackageReference Include="MSBuildForUnity" Version="[0.8.0-*, 0.8.0]">
23+
<PackageReference Include="MSBuildForUnity" Version="[0.8.1-*, 0.8.1]">
2424
<PrivateAssets>all</PrivateAssets>
2525
<IncludeAssets>runtime; build; native; contentfiles; analyzers</IncludeAssets>
2626
</PackageReference>

Source/MSBuildTools.Unity/Packages/com.microsoft.msbuildforunity/Editor/ProjectGenerator/MSBuildTemplates/MSBuildForUnity.Common.props.template

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<Project>
22
<PropertyGroup>
3-
<MSBuildForUnityVersion>0.8.0</MSBuildForUnityVersion>
3+
<MSBuildForUnityVersion>0.8.1</MSBuildForUnityVersion>
44

55
<MSBuildForUnityGeneratedOutputDirectory><!--GENERATED_OUTPUT_DIRECTORY_TOKEN--></MSBuildForUnityGeneratedOutputDirectory>
66
<UnityProjectAssetsPath><!--UNITY_PROJECT_ASSETS_PATH_TOKEN--></UnityProjectAssetsPath>

Source/MSBuildTools.Unity/Packages/com.microsoft.msbuildforunity/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "com.microsoft.msbuildforunity",
3-
"version": "0.8.0",
3+
"version": "0.8.1",
44
"displayName": "MSBuild for Unity",
55
"description": "MSBuildForUnity solves the problem of establishing clear dependency relationships between Unity project and other .NET components such as external (to Unity) C# projects, or NuGet packages. It creates a familiar to .NET developers project structure and ensures that the dependencies are resolved and brought into the Unity project as appropriate.",
66
"unity": "2018.1",

0 commit comments

Comments
 (0)