提交 25276e26 编写于 作者: V Vladimir Sadov 提交者: GitHub

Merge pull request #22038 from VSadov/fixPackage

Revert Microsoft.NETCore.Compilers.props to 6/8 version
<?xml version="1.0" encoding="utf-8"?>
<!-- Copyright (c) Microsoft. All Rights Reserved. Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information. -->
<Project ToolsVersion="14.0" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<Project ToolsVersion="14.0" DefaultTargets="Build" InitialTargets="MakeCompilerScriptsExecutable" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<!-- Always use the local build task, even if we just shell out to an exe in case there are
new properties in the local build task. -->
<UsingTask TaskName="Microsoft.CodeAnalysis.BuildTasks.Csc"
......@@ -16,5 +16,19 @@
<PropertyGroup>
<!-- Compiler server is not currently supported on CoreCLR -->
<UseSharedCompilation>false</UseSharedCompilation>
<CscToolPath>$(MSBuildThisFileDirectory)..\tools\bincore</CscToolPath>
<CscToolExe Condition="'$(OS)' == 'Windows_NT'">RunCsc.cmd</CscToolExe>
<CscToolExe Condition="'$(OS)' != 'Windows_NT'">RunCsc</CscToolExe>
<VbcToolPath>$(MSBuildThisFileDirectory)..\tools\bincore</VbcToolPath>
<VbcToolExe Condition="'$(OS)' == 'Windows_NT'">RunVbc.cmd</VbcToolExe>
<VbcToolExe Condition="'$(OS)' != 'Windows_NT'">RunVbc</VbcToolExe>
</PropertyGroup>
<!-- If packaged on Windows, the RunCsc and RunVbc scripts may not be marked
executable. If we're not running on Windows, mark them as such, just in case -->
<Target Name="MakeCompilerScriptsExecutable"
Condition="'$(BuildingProject)' == 'true' AND '$(OS)' != 'Windows_NT'"
BeforeTargets="CoreCompile">
<Exec Command="chmod +x &quot;$(CscToolPath)/$(CscToolExe)&quot; &quot;$(VbcToolPath)/$(VbcToolExe)&quot;" />
</Target>
</Project>
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册