Skip to content

Commit 80f0c4d

Browse files
[VMR] Codeflow 907e1be-907e1be
[[ commit created by automation ]]
1 parent 907e1be commit 80f0c4d

File tree

9 files changed

+25
-21
lines changed

9 files changed

+25
-21
lines changed

src/BuiltInTools/dotnet-format/dotnet-format.csproj

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,8 @@
3030
</PropertyGroup>
3131

3232
<ItemGroup>
33+
<PackageReference Include="Microsoft.Build" />
34+
3335
<PackageReference Include="Microsoft.CodeAnalysis" />
3436
<PackageReference Include="Microsoft.CodeAnalysis.CSharp" />
3537
<PackageReference Include="Microsoft.CodeAnalysis.VisualBasic" />

src/Layout/redist/targets/GenerateBundledVersions.targets

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
<Project>
22

33
<Target Name="GenerateBundledVersions"
4-
Condition="'$(PgoInstrument)' != 'true'"
54
DependsOnTargets="GenerateBundledVersionsProps;GenerateBundledCliToolsProps;GenerateBundledMSBuildProps" >
65
<WriteLinesToFile
76
File="$(ArtifactsShippingPackagesDir)productVersion.txt"
@@ -15,28 +14,28 @@
1514
Overwrite="true"
1615
Encoding="ASCII" />
1716

18-
<!-- The Version.Details file doesn't contain live information when building the
19-
.NET product inside the orchestrator. Therefore don't read from it in that mode. -->
17+
<!-- The Version.Details file doesn't contain live information when building
18+
inside the VMR. Therefore don't read from it in that mode. -->
2019
<GetDependencyInfo
2120
VersionDetailsXmlFile="$(RepositoryEngineeringDir)Version.Details.xml"
2221
DependencyName="Microsoft.NETCore.App.Ref"
23-
Condition="'$(DotNetBuildOrchestrator)' != 'true'">
22+
Condition="'$(DotNetBuildFromVMR)' != 'true'">
2423
<Output TaskParameter="DependencyVersion" PropertyName="DepRuntimeVersion" />
2524
<Output TaskParameter="DependencyCommit" PropertyName="DepRuntimeCommit" />
2625
</GetDependencyInfo>
2726

2827
<GetDependencyInfo
2928
VersionDetailsXmlFile="$(RepositoryEngineeringDir)Version.Details.xml"
3029
DependencyName="Microsoft.AspNetCore.App.Ref"
31-
Condition="'$(DotNetBuildOrchestrator)' != 'true'">
30+
Condition="'$(DotNetBuildFromVMR)' != 'true'">
3231
<Output TaskParameter="DependencyVersion" PropertyName="DepAspNetCoreVersion" />
3332
<Output TaskParameter="DependencyCommit" PropertyName="DepAspNetCoreCommit" />
3433
</GetDependencyInfo>
3534

3635
<GetDependencyInfo
3736
VersionDetailsXmlFile="$(RepositoryEngineeringDir)Version.Details.xml"
3837
DependencyName="Microsoft.WindowsDesktop.App.Ref"
39-
Condition="'$(DotNetBuildOrchestrator)' != 'true'">
38+
Condition="'$(DotNetBuildFromVMR)' != 'true'">
4039
<Output TaskParameter="DependencyVersion" PropertyName="DepWindowsDesktopVersion" />
4140
<Output TaskParameter="DependencyCommit" PropertyName="DepWindowsDesktopCommit" />
4241
</GetDependencyInfo>

src/Layout/redist/targets/GenerateLayout.targets

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -199,8 +199,8 @@
199199
<Target Name="PublishTestCli">
200200
<PropertyGroup>
201201
<TestCliNuGetDirectoryTargetFramework Condition="'$(DotNetBuildSourceOnly)' != 'true'" >net9.0</TestCliNuGetDirectoryTargetFramework>
202-
<TestCliNuGetDirectoryTargetFramework Condition="'$(DotNetBuildSourceOnly)' == 'true' and '$(DotNetBuildOrchestrator)' == 'true'" >$(NetCurrent)</TestCliNuGetDirectoryTargetFramework>
203-
<TestCliNuGetDirectoryTargetFramework Condition="'$(DotNetBuildSourceOnly)' == 'true' and '$(DotNetBuildOrchestrator)' != 'true'" >net9.0</TestCliNuGetDirectoryTargetFramework>
202+
<TestCliNuGetDirectoryTargetFramework Condition="'$(DotNetBuildSourceOnly)' == 'true' and '$(DotNetBuildFromVMR)' == 'true'" >$(NetCurrent)</TestCliNuGetDirectoryTargetFramework>
203+
<TestCliNuGetDirectoryTargetFramework Condition="'$(DotNetBuildSourceOnly)' == 'true' and '$(DotNetBuildFromVMR)' != 'true'" >net9.0</TestCliNuGetDirectoryTargetFramework>
204204
<TestCliNuGetDirectory>$(NuGetPackageRoot)microsoft.testplatform.cli/$(MicrosoftTestPlatformCLIPackageVersion)/contentFiles/any/$(TestCliNuGetDirectoryTargetFramework)/</TestCliNuGetDirectory>
205205
</PropertyGroup>
206206

src/Layout/redist/targets/RestoreLayout.targets

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -305,7 +305,7 @@
305305
For example, the dotnetbuilds uri for 'file:///vmr/dotnet2/artifacts/obj/x64/Release/blob-feed/assets//aspnetcore_base_runtime.version'
306306
would end up 'https://ci.dot.net/public//dotnet-runtime-8.0.0-rc.1.23381.3-centos.8-x64.tar.gz'. This is
307307
missing the runtime version number directory. -->
308-
<ItemGroup Condition="'$(DotNetBuildOrchestrator)' != 'true'">
308+
<ItemGroup Condition="'$(DotNetBuildFromVMR)' != 'true'">
309309
<UrisToDownload Include="$([System.String]::Copy('%(ComponentToDownload.BaseUrl)').Replace($(PublicBaseURL), 'https://ci.dot.net/public/'))/%(ComponentToDownload.DownloadFileName)"
310310
Condition="'%(ComponentToDownload.ShouldDownload)' == 'true'">
311311
<ShouldDownload>%(ComponentToDownload.ShouldDownload)</ShouldDownload>

src/Layout/redist/tools/tool_fsc.csproj

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -30,10 +30,10 @@
3030
<Target Name="_ResolvePublishNuGetPackagePdbsAndXml"
3131
AfterTargets="_ResolveCopyLocalAssetsForPublish">
3232
<PropertyGroup>
33-
<FSharpCorePath Condition="'$(DotNetFinalVersionKind)'!='release'">Shipping</FSharpCorePath>
34-
<FSharpCorePath Condition="'$(DotNetFinalVersionKind)'=='release'">Release</FSharpCorePath>
35-
<FSharpTfm>net9.0</FSharpTfm>
36-
<FSharpTfm Condition="'$(DotNetBuildSourceOnly)' == 'true' and '$(DotNetBuildOrchestrator)' == 'true'">$(NetCurrent)</FSharpTfm>
33+
<FSharpCorePath Condition="'$(DotNetFinalVersionKind)'!='release'">Shipping</FSharpCorePath>
34+
<FSharpCorePath Condition="'$(DotNetFinalVersionKind)'=='release'">Release</FSharpCorePath>
35+
<FSharpTfm>net9.0</FSharpTfm>
36+
<FSharpTfm Condition="'$(DotNetBuildSourceOnly)' == 'true' and '$(DotNetBuildFromVMR)' == 'true'">$(NetCurrent)</FSharpTfm>
3737
</PropertyGroup>
3838

3939
<ItemGroup>

src/Tasks/Microsoft.NET.Build.Tasks/targets/Microsoft.NET.Sdk.BeforeCommon.targets

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -335,7 +335,9 @@ Copyright (c) .NET Foundation. All rights reserved.
335335

336336
<PropertyGroup Condition="'$(RoslynCompilerType)' == 'Core'">
337337
<RoslynTargetsPath Condition="'$(MSBuildRuntimeType)' == 'Core'">$(MSBuildThisFileDirectory)..\..\..\Roslyn</RoslynTargetsPath>
338+
<RoslynTasksAssembly Condition="'$(MSBuildRuntimeType)' == 'Core'">$(MSBuildThisFileDirectory)..\..\..\Roslyn\Microsoft.Build.Tasks.CodeAnalysis.dll</RoslynTasksAssembly>
338339
<RoslynTargetsPath Condition="'$(MSBuildRuntimeType)' != 'Core'">$(MSBuildThisFileDirectory)..\..\..\Roslyn\binfx</RoslynTargetsPath>
340+
<RoslynTasksAssembly Condition="'$(MSBuildRuntimeType)' != 'Core'">$(MSBuildThisFileDirectory)..\..\..\Roslyn\binfx\Microsoft.Build.Tasks.CodeAnalysis.Sdk.dll</RoslynTasksAssembly>
339341
<CSharpCoreTargetsPath>$(MSBuildThisFileDirectory)..\..\..\Roslyn\Microsoft.CSharp.Core.targets</CSharpCoreTargetsPath>
340342
<VisualBasicCoreTargetsPath>$(MSBuildThisFileDirectory)..\..\..\Roslyn\Microsoft.VisualBasic.Core.targets</VisualBasicCoreTargetsPath>
341343
</PropertyGroup>

src/Tasks/Microsoft.NET.Build.Tasks/targets/Microsoft.NET.Sdk.Common.targets

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -77,6 +77,7 @@ Copyright (c) .NET Foundation. All rights reserved.
7777

7878
<PropertyGroup Condition="'$(RoslynCompilerType)' == 'FrameworkPackage' and '$(OS)' == 'Windows_NT' and '$(MSBuildRuntimeType)' == 'Full'">
7979
<RoslynTargetsPath>$(NuGetPackageRoot)\microsoft.net.sdk.compilers.toolset\$(NETCoreSdkVersion)</RoslynTargetsPath>
80+
<RoslynTasksAssembly>$(RoslynTargetsPath)\Microsoft.Build.Tasks.CodeAnalysis.dll</RoslynTasksAssembly>
8081
<_NeedToDownloadMicrosoftNetSdkCompilersToolsetPackage>true</_NeedToDownloadMicrosoftNetSdkCompilersToolsetPackage>
8182
<_MicrosoftNetSdkCompilersToolsetPackageRootEmpty Condition="'$(NuGetPackageRoot)' == ''">true</_MicrosoftNetSdkCompilersToolsetPackageRootEmpty>
8283
</PropertyGroup>

src/Tasks/Microsoft.NET.Build.Tasks/targets/Microsoft.NET.Sdk.targets

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -223,9 +223,9 @@ Copyright (c) .NET Foundation. All rights reserved.
223223
<!-- NOTE: Keep in sync with https://github.com/dotnet/msbuild/blob/main/src/Tasks/Microsoft.Common.tasks -->
224224
<!-- `Condition="Exists('$(RoslynTargetsPath)')` is needed because the package might not be yet downloaded during restore in VS
225225
and we do not want to fail the restore phase because of that. -->
226-
<UsingTask TaskName="Microsoft.CodeAnalysis.BuildTasks.CopyRefAssembly" AssemblyFile="$(RoslynTargetsPath)\Microsoft.Build.Tasks.CodeAnalysis.dll" Condition="Exists('$(RoslynTargetsPath)')" />
227-
<UsingTask TaskName="Microsoft.CodeAnalysis.BuildTasks.Csc" AssemblyFile="$(RoslynTargetsPath)\Microsoft.Build.Tasks.CodeAnalysis.dll" Condition="Exists('$(RoslynTargetsPath)')" />
228-
<UsingTask TaskName="Microsoft.CodeAnalysis.BuildTasks.Vbc" AssemblyFile="$(RoslynTargetsPath)\Microsoft.Build.Tasks.CodeAnalysis.dll" Condition="Exists('$(RoslynTargetsPath)')" />
226+
<UsingTask TaskName="Microsoft.CodeAnalysis.BuildTasks.CopyRefAssembly" AssemblyFile="$(RoslynTasksAssembly)" Condition="Exists('$(RoslynTasksAssembly)')" />
227+
<UsingTask TaskName="Microsoft.CodeAnalysis.BuildTasks.Csc" AssemblyFile="$(RoslynTasksAssembly)" Condition="Exists('$(RoslynTasksAssembly)')" />
228+
<UsingTask TaskName="Microsoft.CodeAnalysis.BuildTasks.Vbc" AssemblyFile="$(RoslynTasksAssembly)" Condition="Exists('$(RoslynTasksAssembly)')" />
229229

230230
<ItemGroup Condition="'$(_NeedToDownloadMicrosoftNetSdkCompilersToolsetPackage)' == 'true'">
231231
<PackageDownload Include="Microsoft.Net.Sdk.Compilers.Toolset" Version="[$(NETCoreSdkVersion)]" />

src/Tasks/Microsoft.NET.Build.Tasks/targets/Microsoft.PackageDependencyResolution.targets

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -175,7 +175,7 @@ Copyright (c) .NET Foundation. All rights reserved.
175175
AssemblyFile="$(MicrosoftNETBuildTasksAssembly)" />
176176
<UsingTask TaskName="Microsoft.NET.Build.Tasks.ResolvePackageAssets"
177177
AssemblyFile="$(MicrosoftNETBuildTasksAssembly)" />
178-
178+
179179
<!-- The condition on this target causes it to be skipped during design-time builds if
180180
the restore operation hasn't run yet. This is to avoid displaying an error in
181181
the Visual Studio error list when a project is created before NuGet restore has
@@ -214,17 +214,17 @@ Copyright (c) .NET Foundation. All rights reserved.
214214
<Target Name="_ResolveCompilerVersion"
215215
Condition="'$(CompilerApiVersion)' == '' And
216216
('$(Language)' == 'C#' Or '$(Language)' == 'VB') And
217-
Exists('$(RoslynTargetsPath)\Microsoft.Build.Tasks.CodeAnalysis.dll')">
218-
219-
<GetAssemblyIdentity AssemblyFiles="$(RoslynTargetsPath)\Microsoft.Build.Tasks.CodeAnalysis.dll">
217+
Exists('$(RoslynTasksAssembly)')">
218+
219+
<GetAssemblyIdentity AssemblyFiles="$(RoslynTasksAssembly)">
220220
<Output TaskParameter="Assemblies" ItemName="_CodeAnalysisIdentity" />
221221
</GetAssemblyIdentity>
222222

223223
<PropertyGroup>
224224
<_RoslynApiVersion>$([System.Version]::Parse(%(_CodeAnalysisIdentity.Version)).Major).$([System.Version]::Parse(%(_CodeAnalysisIdentity.Version)).Minor)</_RoslynApiVersion>
225225
<CompilerApiVersion>roslyn$(_RoslynApiVersion)</CompilerApiVersion>
226226
</PropertyGroup>
227-
227+
228228
</Target>
229229

230230
<Target Name="ResolvePackageAssets"

0 commit comments

Comments
 (0)