|
47 | 47 | version string to use as our publish location), non-packed (won't be shipped in the future), and it is _not_ a |
48 | 48 | C# or F# project. For now at least, C# and F# projects should not be referenced when using desktop msbuild. |
49 | 49 | --> |
50 | | - <MSBuild Projects="$(RepoRoot)src\SignalR\clients\ts\FunctionalTests\SignalR.Npm.FunctionalTests.nodeproj" |
51 | | - Properties="DisableYarnCheck=true;ExcludeFromBuild=false" |
| 50 | + <MSBuild Projects="$(RepoRoot)eng\Npm.Workspace.nodeproj" |
| 51 | + Properties="ExcludeFromBuild=false" |
52 | 52 | Targets="_GetPackageVersionInfo"> |
53 | 53 | <Output TaskParameter="TargetOutputs" ItemName="_ResolvedPackageVersionInfo" /> |
54 | 54 | </MSBuild> |
55 | 55 |
|
56 | 56 | <PropertyGroup> |
| 57 | + <!-- _GetPackageVersionInfo will return all the versions for all public/shipping packages. |
| 58 | + They are all the same, so we just take the last one. |
| 59 | + If this changes in the future, we'll have to update this logic. |
| 60 | + --> |
57 | 61 | <_PackageVersion>@(_ResolvedPackageVersionInfo->'%(PackageVersion)')</_PackageVersion> |
58 | 62 | </PropertyGroup> |
59 | 63 |
|
|
101 | 105 | Name="_WriteProductVersionFile" |
102 | 106 | Condition=" '$(PublishInstallerBaseVersion)' == 'true'"> |
103 | 107 | <!-- |
104 | | - This target is defined in eng/targets/Packaging.targets and Npm.Common.targets and included in every C#, F#, |
105 | | - and npm project. We use Microsoft.JSInterop.JS.nodeproj because it is shipping (we need a stable |
| 108 | + This target is defined in eng/targets/Packaging.targets and Npm.Workspace.nodeproj and included in every C#, F#, |
| 109 | + and JS project. We use Microsoft.JSInterop.JS.nodeproj because it is shipping (we need a stable |
106 | 110 | version string to use for productVersion.txt), and because it won't break when the SDK requires a newer |
107 | 111 | desktop MSBuild than exists on the build machine. |
108 | 112 | --> |
109 | | - <MSBuild Projects="$(RepoRoot)src\JSInterop\Microsoft.JSInterop.JS\src\Microsoft.JSInterop.JS.nodeproj" |
110 | | - Properties="DisableYarnCheck=true;ExcludeFromBuild=false" |
| 113 | + <MSBuild Projects="$(RepoRoot)eng\Npm.Workspace.nodeproj" |
| 114 | + Properties="ExcludeFromBuild=false" |
111 | 115 | Targets="_GetPackageVersionInfo"> |
112 | 116 | <Output TaskParameter="TargetOutputs" ItemName="_ResolvedProductVersionInfo" /> |
113 | 117 | </MSBuild> |
114 | 118 |
|
115 | 119 | <PropertyGroup> |
116 | | - <_ProductVersion>@(_ResolvedProductVersionInfo->'%(PackageVersion)')</_ProductVersion> |
| 120 | + <!-- _GetPackageVersionInfo will return all the versions for all public/shipping packages. |
| 121 | + They are all the same, so we just take the last one. |
| 122 | + If this changes in the future, we'll have to update this logic. |
| 123 | + --> |
| 124 | + <_ProductVersion>%(_ResolvedProductVersionInfo.PackageVersion)</_ProductVersion> |
117 | 125 | </PropertyGroup> |
118 | 126 |
|
119 | 127 | <!-- Generate productVersion.txt containing the value of $(PackageVersion) --> |
|
0 commit comments