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

Commit 363599c

Browse files
authored
Building non-Windows builds using the CLI's MSBuild (#26686)
1 parent 9885497 commit 363599c

File tree

6 files changed

+9
-23
lines changed

6 files changed

+9
-23
lines changed

BuildToolsVersion.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
2.1.0-prerelease-02427-01
1+
2.1.0-prerelease-02430-02

DotnetCLIVersion.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
2.0.0
1+
2.1.2

Packaging.props

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,7 @@
77
<RuntimeIdGraphDefinitionFile>$(ProjectDir)pkg/Microsoft.NETCore.Platforms/runtime.json</RuntimeIdGraphDefinitionFile>
88
<ReleaseNotes>https://go.microsoft.com/fwlink/?LinkID=799421</ReleaseNotes>
99
<ProjectUrl>https://dot.net</ProjectUrl>
10-
<!-- Add a condition for this when we are able to run on .NET Core -->
11-
<PackagingTaskDir>$(ToolsDir)net46/</PackagingTaskDir>
10+
<PackagingTaskDir>$(BuildToolsTaskDir)</PackagingTaskDir>
1211
<LicenseUrl>https://github.com/dotnet/corefx/blob/master/LICENSE.TXT</LicenseUrl>
1312
<!-- defined in buildtools packaging.targets, but we need this before targets are imported -->
1413
<PackagePlatform Condition="'$(PackagePlatform)' == ''">$(Platform)</PackagePlatform>

dependencies.props

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
<ProjectNTfsTestILCCurrentRef>dbe85fd2f89b725343b565f46acd74cc1dd29afd</ProjectNTfsTestILCCurrentRef>
1818
<SniCurrentRef>8bd1ec5fac9f0eec34ff6b34b1d878b4359e02dd</SniCurrentRef>
1919
<StandardCurrentRef>6298244e25cf84d91e3cda9627315f2425274624</StandardCurrentRef>
20-
<BuildToolsCurrentRef>dbe85fd2f89b725343b565f46acd74cc1dd29afd</BuildToolsCurrentRef>
20+
<BuildToolsCurrentRef>790dd8388e978095e8e8ba41ba03c98a082e7c7e</BuildToolsCurrentRef>
2121
</PropertyGroup>
2222

2323
<!-- Product dependency versions. -->
@@ -48,13 +48,13 @@
4848
<AppXRunnerVersion>1.0.3-prerelease-00921-01</AppXRunnerVersion>
4949
<XunitPerfAnalysisPackageVersion>1.0.0-beta-build0015</XunitPerfAnalysisPackageVersion>
5050
<TraceEventPackageVersion>1.0.3-alpha-experimental</TraceEventPackageVersion>
51-
<XunitNetcoreExtensionsVersion>2.1.0-prerelease-02427-01</XunitNetcoreExtensionsVersion>
51+
<XunitNetcoreExtensionsVersion>2.1.0-prerelease-02430-02</XunitNetcoreExtensionsVersion>
5252
</PropertyGroup>
5353

5454
<!-- Package versions used as toolsets -->
5555
<PropertyGroup>
5656
<FeedTasksPackage>Microsoft.DotNet.Build.Tasks.Feed</FeedTasksPackage>
57-
<FeedTasksPackageVersion>2.1.0-prerelease-02427-01</FeedTasksPackageVersion>
57+
<FeedTasksPackageVersion>2.1.0-prerelease-02430-02</FeedTasksPackageVersion>
5858
</PropertyGroup>
5959

6060
<!-- Package dependency verification/auto-upgrade configuration. -->

init-tools.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -158,11 +158,11 @@ export ILASMCOMPILER_VERSION=$__ILASM_VERSION
158158
export NATIVE_TOOLS_RID=$__ILASM_RID
159159

160160
echo "Initializing BuildTools..."
161-
echo "Running: $__BUILD_TOOLS_PATH/init-tools.sh $__scriptpath $__DOTNET_CMD $__TOOLRUNTIME_DIR" >> $__init_tools_log
161+
echo "Running: $__BUILD_TOOLS_PATH/init-tools.sh $__scriptpath $__DOTNET_CMD $__TOOLRUNTIME_DIR $__PACKAGES_DIR" >> $__init_tools_log
162162

163163
# Executables restored with .NET Core 2.0 do not have executable permission flags. https://github.com/NuGet/Home/issues/4424
164164
chmod +x $__BUILD_TOOLS_PATH/init-tools.sh
165-
$__BUILD_TOOLS_PATH/init-tools.sh $__scriptpath $__DOTNET_CMD $__TOOLRUNTIME_DIR >> $__init_tools_log
165+
$__BUILD_TOOLS_PATH/init-tools.sh $__scriptpath $__DOTNET_CMD $__TOOLRUNTIME_DIR $__PACKAGES_DIR >> $__init_tools_log
166166
if [ "$?" != "0" ]; then
167167
echo "ERROR: An error occurred when trying to initialize the tools." 1>&2
168168
display_error_message

src/Microsoft.XmlSerializer.Generator/tests/Microsoft.XmlSerializer.Generator.Tests.csproj

Lines changed: 1 addition & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@
5858
<Message Text="Running Serialization Tool" Importance="normal" />
5959
<Exec Command="$(GeneratorCliPath)dotnet $(OutputPath)dotnet-Microsoft.XmlSerializer.Generator.dll $(OutputPath)Microsoft.XmlSerializer.Generator.Tests.dll /force /quiet" />
6060
<Warning Condition="Exists('$(OutputPath)$(SerializerName).cs') != 'true'" Text="Fail to generate $(OutputPath)$(SerializerName).cs"/>
61-
<Csc Condition="Exists('$(OutputPath)$(SerializerName).cs') == 'true' AND '$(MSBuildRuntimeType)' != 'core'"
61+
<Csc Condition="Exists('$(OutputPath)$(SerializerName).cs') == 'true'"
6262
OutputAssembly="$(OutputPath)$(SerializerName).dll"
6363
References="@(ReferencePath);@(IntermediateAssembly)"
6464
EmitDebugInformation="$(DebugSymbols)"
@@ -69,19 +69,6 @@
6969
ToolPath="$(CscToolPath)"
7070
DisabledWarnings="$(NoWarn), 219"
7171
UseSharedCompilation="true" />
72-
<!-- when building on core CSC requires the OverrideToolHost parameter, but this is not supported by desktop csc -->
73-
<Csc Condition="Exists('$(OutputPath)$(SerializerName).cs') == 'true' AND '$(MSBuildRuntimeType)' == 'core'"
74-
OutputAssembly="$(OutputPath)$(SerializerName).dll"
75-
References="@(ReferencePath);@(IntermediateAssembly)"
76-
EmitDebugInformation="$(DebugSymbols)"
77-
DebugType="$(DebugType)"
78-
Sources="$(OutputPath)$(SerializerName).cs"
79-
TargetType="Library"
80-
ToolExe="$(CscToolExe)"
81-
ToolPath="$(CscToolPath)"
82-
OverrideToolHost="$(OverrideToolHost)"
83-
DisabledWarnings="$(NoWarn), 219"
84-
UseSharedCompilation="true" />
8572
<Warning Condition="Exists('$(OutputPath)$(SerializerName).dll') != 'true'" Text="Fail to generate $(OutputPath)$(SerializerName).dll"/>
8673

8774
<ItemGroup>

0 commit comments

Comments
 (0)