Skip to content
This repository was archived by the owner on Apr 20, 2023. It is now read-only.

Commit 8c2160b

Browse files
committed
Removing some patches for source build.
1 parent f87c6e7 commit 8c2160b

File tree

5 files changed

+8
-6
lines changed

5 files changed

+8
-6
lines changed

build/GitCommitInfo.targets

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,14 @@
11
<Project ToolsVersion="15.0">
22
<Target Name="WriteGitCommitInfoProps">
33
<Exec Command="git rev-list --count HEAD"
4-
ConsoleToMSBuild="true">
4+
ConsoleToMSBuild="true"
5+
Condition=" '$(GitInfoCommitCount)' == '' ">
56
<Output TaskParameter="ConsoleOutput" PropertyName="GitInfoCommitCount" />
67
</Exec>
78

89
<Exec Command="git rev-parse HEAD"
9-
ConsoleToMSBuild="true">
10+
ConsoleToMSBuild="true"
11+
Condition=" '$(GitInfoCommitHash)' == '' ">
1012
<Output TaskParameter="ConsoleOutput" PropertyName="GitInfoCommitHash" />
1113
</Exec>
1214

build/NugetConfigFile.targets

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@
4343

4444
<WriteLinesToFile Condition="'$(ExternalRestoreSources)' != '' and '$(DotNetBuildOffline)' != 'true'"
4545
File="$(GeneratedNuGetConfig)"
46-
Lines="&lt;add key=&quot;PrivateBlobFeed%(NugetConfigPrivateFeeds.Filename)&quot; value=&quot;%(NugetConfigPrivateFeeds.Identity)&quot; /&gt;"
46+
Lines="&lt;add key=&quot;PrivateBlobFeed%(NugetConfigPrivateFeeds.Identity)&quot; value=&quot;%(NugetConfigPrivateFeeds.Identity)&quot; /&gt;"
4747
Overwrite="false" />
4848

4949
<WriteLinesToFile Condition="'$(DotNetBuildOffline)' != 'true'"

run-build.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -189,7 +189,7 @@ fi
189189
export DOTNET_SKIP_FIRST_TIME_EXPERIENCE=1
190190

191191
if [ $BUILD -eq 1 ]; then
192-
dotnet msbuild build.proj /p:Architecture=$ARCHITECTURE $CUSTOM_BUILD_ARGS /p:GeneratePropsFile=true /t:WriteDynamicPropsToStaticPropsFiles $argsnotargets
192+
dotnet msbuild build.proj /p:Architecture=$ARCHITECTURE $CUSTOM_BUILD_ARGS /p:GeneratePropsFile=true /t:WriteDynamicPropsToStaticPropsFiles ${argsnotargets[@]}
193193
dotnet msbuild build.proj /m /v:normal /fl /flp:v=diag /p:Architecture=$ARCHITECTURE $CUSTOM_BUILD_ARGS $args
194194
else
195195
echo "Not building due to --nobuild"

src/Microsoft.DotNet.MSBuildSdkResolver/Microsoft.DotNet.MSBuildSdkResolver.csproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
<TargetFrameworks>netstandard2.0;net46</TargetFrameworks>
66
<TargetFrameworks Condition="'$(OS)' != 'Windows_NT'">netstandard2.0</TargetFrameworks>
77
<PlatformTarget>AnyCPU</PlatformTarget>
8-
<RuntimeIdentifiers>win-x86;win-x64</RuntimeIdentifiers>
8+
<RuntimeIdentifiers Condition="'$(OS)' == 'Windows_NT'">win-x86;win-x64</RuntimeIdentifiers>
99
<WarningsAsErrors>true</WarningsAsErrors>
1010
<AssemblyOriginatorKeyFile>../../tools/Key.snk</AssemblyOriginatorKeyFile>
1111
<SignAssembly>true</SignAssembly>

src/redist/redist.csproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919
<PackageReference Include="NuGet.Build.Tasks" Version="$(NuGetBuildTasksPackageVersion)" />
2020
<PackageReference Include="Microsoft.TestPlatform.CLI" Version="$(MicrosoftTestPlatformCLIPackageVersion)" />
2121
<PackageReference Include="Microsoft.TestPlatform.Build" Version="$(MicrosoftTestPlatformBuildPackageVersion)" />
22-
<PackageReference Include="NuGet.Localization" Version="$(NuGetProjectModelPackageVersion)" />
22+
<PackageReference Condition=" '$(DotNetBuildFromSource)' != 'true' " Include="NuGet.Localization" Version="$(NuGetProjectModelPackageVersion)" />
2323
<PackageReference Include="NuGet.ProjectModel" Version="$(NuGetProjectModelPackageVersion)" />
2424
<PackageReference Include="Microsoft.NETCore.Compilers" Version="$(MicrosoftNETCoreCompilersPackageVersion)">
2525
<ExcludeAssets>All</ExcludeAssets>

0 commit comments

Comments
 (0)