提交 5bb36212 编写于 作者: J Jared Parsons

Remove special casing of compiler tools

上级 43bf272b
......@@ -2,9 +2,13 @@
<!-- Copyright (c) Microsoft. All Rights Reserved. Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information. -->
<Choose>
<When Condition="'$(RoslynProjectType)' == 'ExeCoreClr'">
<When Condition="'$(RoslynProjectType)' == 'ExeNonDeployment'">
<!-- Some Exes are not designed to be directly runnable. Typically for size savings in
our build output. They are made runnable by deployment projects that reference
them. -->
<PropertyGroup>
<_CopyReferences>false</_CopyReferences>
<_CopyProjectReferences>false</_CopyProjectReferences>
<OutDir>$(OutDir)Exes\$(MSBuildProjectName)\</OutDir>
</PropertyGroup>
</When>
......@@ -28,16 +32,6 @@
<OutDir>$(OutDir)Exes\</OutDir>
</PropertyGroup>
</When>
<When Condition="'$(RoslynProjectType)' == 'DeploymentCompilerGeneratorTools'">
<PropertyGroup>
<OutDir>$(OutDir)CompilerGeneratorTools\</OutDir>
</PropertyGroup>
</When>
<When Condition="'$(RoslynProjectType)' == 'Deployment'">
<PropertyGroup>
<OutDir>$(OutDir)Deployment\$(MSBuildProjectName)\</OutDir>
</PropertyGroup>
</When>
<When Condition="'$(RoslynProjectType)' == 'Vsix'">
<PropertyGroup>
<_CopyReferences>false</_CopyReferences>
......
......@@ -39,7 +39,7 @@
Microsoft.Common.CurrentVersion.targets to see how it is consumed -->
<WindowsAppContainer>false</WindowsAppContainer>
<CompilerGeneratorToolsDir>$(OutDir)CompilerGeneratorTools\</CompilerGeneratorToolsDir>
<CompilerGeneratorToolsDir>$(OutDir)Exes\DeployCompilerGeneratorToolsRuntime\</CompilerGeneratorToolsDir>
<MSBuildAssemblyNameFragment>Core</MSBuildAssemblyNameFragment>
<!-- To copy .dll.config and .exe.config files of the referenced projects to the output dir
......
......@@ -9,7 +9,6 @@
<AssemblyName>Toolset_DoNetUse</AssemblyName>
<TargetFrameworkVersion>v4.6</TargetFrameworkVersion>
<AutoGenerateBindingRedirects>true</AutoGenerateBindingRedirects>
<RoslynProjectType>Deployment</RoslynProjectType>
</PropertyGroup>
<ItemGroup>
<Reference Include="System" />
......@@ -25,10 +24,22 @@
<Project>{7ad4fe65-9a30-41a6-8004-aa8f89bcb7f3}</Project>
<Name>MSBuildTask</Name>
</ProjectReference>
<ProjectReference Include="..\..\src\Compilers\Core\Portable\CodeAnalysis.csproj">
<Project>{1ee8cad3-55f9-4d91-96b2-084641da9a6c}</Project>
<Name>CodeAnalysis</Name>
</ProjectReference>
<ProjectReference Include="..\..\src\Compilers\CSharp\csc\csc.csproj">
<Project>{4B45CA0C-03A0-400F-B454-3D4BCB16AF38}</Project>
<Name>csc</Name>
</ProjectReference>
<ProjectReference Include="..\..\src\Compilers\CSharp\Portable\CSharpCodeAnalysis.csproj">
<Project>{b501a547-c911-4a05-ac6e-274a50dff30e}</Project>
<Name>CSharpCodeAnalysis</Name>
</ProjectReference>
<ProjectReference Include="..\..\src\Compilers\VisualBasic\Portable\BasicCodeAnalysis.vbproj">
<Project>{2523d0e6-df32-4a3e-8ae0-a19bffae2ef6}</Project>
<Name>BasicCodeAnalysis</Name>
</ProjectReference>
<ProjectReference Include="..\..\src\Compilers\VisualBasic\vbc\vbc.csproj">
<Project>{E58EE9D7-1239-4961-A0C1-F9EC3952C4C1}</Project>
<Name>vbc</Name>
......@@ -41,6 +52,14 @@
<Project>{14118347-ed06-4608-9c45-18228273c712}</Project>
<Name>csi</Name>
</ProjectReference>
<ProjectReference Include="..\..\src\Scripting\Core\Scripting.csproj">
<Project>{12a68549-4e8c-42d6-8703-a09335f97997}</Project>
<Name>Scripting</Name>
</ProjectReference>
<ProjectReference Include="..\..\src\Scripting\CSharp\CSharpScripting.csproj">
<Project>{066f0dbd-c46c-4c20-afec-99829a172625}</Project>
<Name>CSharpScripting</Name>
</ProjectReference>
</ItemGroup>
<Import Project="..\Targets\Imports.targets" />
</Project>
</Project>
\ No newline at end of file
......@@ -64,7 +64,7 @@ msbuild %MSBuildAdditionalCommandLineArgs% /p:UseShippingAssemblyVersion=true /p
powershell -noprofile -executionPolicy RemoteSigned -file "%RoslynRoot%\build\scripts\check-msbuild.ps1" "%bindir%\Bootstrap.log" || goto :BuildFailed
if not exist "%bindir%\Bootstrap" mkdir "%bindir%\Bootstrap" || goto :BuildFailed
move "Binaries\%BuildConfiguration%\Deployment\Toolset\*" "%bindir%\Bootstrap" || goto :BuildFailed
move "Binaries\%BuildConfiguration%\Exes\Toolset\*" "%bindir%\Bootstrap" || goto :BuildFailed
copy "build\bootstrap\*" "%bindir%\Bootstrap" || goto :BuildFailed
REM Clean the previous build
......
......@@ -20,7 +20,7 @@
<RuntimeIndentifier>x64</RuntimeIndentifier>
<NuGetRuntimeIdentifier>$(BaseNuGetRuntimeIdentifier)-$(RuntimeIndentifier)</NuGetRuntimeIdentifier>
<NoStdLib>true</NoStdLib>
<RoslynProjectType>ExeCoreClr</RoslynProjectType>
<RoslynProjectType>ExeNonDeployment</RoslynProjectType>
</PropertyGroup>
<ItemGroup Label="Project References">
<ProjectReference Include="..\..\..\Tools\CommonNetCoreReferences\CommonNetCoreReferences.csproj">
......@@ -71,4 +71,4 @@
</ItemGroup>
<Import Project="..\..\Core\CommandLine\CommandLine.projitems" Label="Shared" />
<Import Project="..\..\..\..\build\Targets\Imports.targets" />
</Project>
\ No newline at end of file
</Project>
......@@ -19,7 +19,7 @@
<RuntimeIndentifier>x64</RuntimeIndentifier>
<NuGetRuntimeIdentifier>$(BaseNuGetRuntimeIdentifier)-$(RuntimeIndentifier)</NuGetRuntimeIdentifier>
<NoStdLib>true</NoStdLib>
<RoslynProjectType>ExeCoreClr</RoslynProjectType>
<RoslynProjectType>ExeNonDeployment</RoslynProjectType>
</PropertyGroup>
<ItemGroup Label="Project References">
<ProjectReference Include="..\..\..\Tools\CommonNetCoreReferences\CommonNetCoreReferences.csproj">
......@@ -71,4 +71,4 @@
<Import Project="..\..\Core\CommandLine\CommandLine.projitems" Label="Shared" />
<Import Project="..\ServerShared\ServerShared.projitems" Label="Shared" />
<Import Project="..\..\..\..\build\Targets\Imports.targets" />
</Project>
\ No newline at end of file
</Project>
......@@ -20,7 +20,7 @@
<RuntimeIndentifier>x64</RuntimeIndentifier>
<NuGetRuntimeIdentifier>$(BaseNuGetRuntimeIdentifier)-$(RuntimeIndentifier)</NuGetRuntimeIdentifier>
<NoStdLib>true</NoStdLib>
<RoslynProjectType>ExeCoreClr</RoslynProjectType>
<RoslynProjectType>ExeNonDeployment</RoslynProjectType>
</PropertyGroup>
<ItemGroup Label="Project References">
<ProjectReference Include="..\..\..\Tools\CommonNetCoreReferences\CommonNetCoreReferences.csproj">
......@@ -71,4 +71,4 @@
</ItemGroup>
<Import Project="..\..\Core\CommandLine\CommandLine.projitems" Label="Shared" />
<Import Project="..\..\..\..\build\Targets\Imports.targets" />
</Project>
\ No newline at end of file
</Project>
......@@ -14,7 +14,7 @@
<TargetFrameworkIdentifier>.NETPortable</TargetFrameworkIdentifier>
<TargetFrameworkVersion>v5.0</TargetFrameworkVersion>
<NoStdLib>true</NoStdLib>
<RoslynProjectType>ExeCoreClr</RoslynProjectType>
<RoslynProjectType>ExeNonDeployment</RoslynProjectType>
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' "></PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' "></PropertyGroup>
......@@ -50,4 +50,4 @@
<Compile Include="Csi.cs" />
</ItemGroup>
<Import Project="..\..\..\build\Targets\Imports.targets" />
</Project>
\ No newline at end of file
</Project>
......@@ -15,7 +15,7 @@
<TargetFrameworkIdentifier>.NETPortable</TargetFrameworkIdentifier>
<TargetFrameworkVersion>v5.0</TargetFrameworkVersion>
<NoStdLib>true</NoStdLib>
<RoslynProjectType>ExeCoreClr</RoslynProjectType>
<RoslynProjectType>ExeNonDeployment</RoslynProjectType>
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' "></PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' "></PropertyGroup>
......@@ -51,4 +51,4 @@
<Compile Include="Vbi.vb" />
</ItemGroup>
<Import Project="..\..\..\build\Targets\Imports.targets" />
</Project>
\ No newline at end of file
</Project>
......@@ -11,13 +11,10 @@ internal enum RoslynProjectKind
{
Dll,
Exe,
ExeCoreClr,
ExeNonDeployment,
UnitTest,
UnitTestDesktop,
UnitTestPortable,
CompilerGeneratorTool,
DeploymentCompilerGeneratorTools,
Deployment,
DeploymentTest,
Vsix,
Depedency,
......@@ -26,7 +23,6 @@ internal enum RoslynProjectKind
internal static class RoslynProjectKindUtil
{
/// <summary>
/// Convert a declared kind into the correspending enum value.
/// </summary>
......@@ -34,20 +30,14 @@ internal static class RoslynProjectKindUtil
{
switch (value)
{
case "ExeCoreClr":
return RoslynProjectKind.Exe;
case "ExeNonDeployment":
return RoslynProjectKind.ExeNonDeployment;
case "UnitTestPortable":
return RoslynProjectKind.UnitTestPortable;
case "UnitTestDesktop":
return RoslynProjectKind.UnitTestDesktop;
case "UnitTest":
return RoslynProjectKind.UnitTest;
case "CompilerGeneratorTool":
return RoslynProjectKind.CompilerGeneratorTool;
case "DeploymentCompilerGeneratorTools":
return RoslynProjectKind.DeploymentCompilerGeneratorTools;
case "Deployment":
return RoslynProjectKind.Deployment;
case "DeploymentTest":
return RoslynProjectKind.DeploymentTest;
case "Vsix":
......
......@@ -16,7 +16,6 @@
<TargetFrameworkVersion>v5.0</TargetFrameworkVersion>
<NoStdLib>true</NoStdLib>
<NonShipping>true</NonShipping>
<RoslynProjectType>Deployment</RoslynProjectType>
</PropertyGroup>
<PropertyGroup Condition="'$(Configuration)|$(Platform)' == 'Debug|x64'" />
<PropertyGroup Condition="'$(Configuration)|$(Platform)' == 'Release|x64'" />
......@@ -31,4 +30,4 @@
<PropertyGroup>
<NuGetTargetMoniker>.NETCoreApp,Version=v1.0</NuGetTargetMoniker>
</PropertyGroup>
</Project>
\ No newline at end of file
</Project>
......@@ -15,7 +15,6 @@
<TargetFrameworkIdentifier>.NETPortable</TargetFrameworkIdentifier>
<TargetFrameworkVersion>v5.0</TargetFrameworkVersion>
<NoStdLib>true</NoStdLib>
<RoslynProjectType>Deployment</RoslynProjectType>
</PropertyGroup>
<PropertyGroup Condition="'$(Configuration)|$(Platform)' == 'Debug|x64'" />
<PropertyGroup Condition="'$(Configuration)|$(Platform)' == 'Release|x64'" />
......@@ -30,4 +29,4 @@
<PropertyGroup>
<NuGetTargetMoniker>.NETCoreApp,Version=v1.0</NuGetTargetMoniker>
</PropertyGroup>
</Project>
\ No newline at end of file
</Project>
......@@ -17,7 +17,6 @@
<TargetFrameworkVersion>v5.0</TargetFrameworkVersion>
<NoStdLib>true</NoStdLib>
<NonShipping>true</NonShipping>
<RoslynProjectType>DeploymentCompilerGeneratorTools</RoslynProjectType>
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|x64' " />
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|x64' " />
......@@ -54,4 +53,4 @@
</ProjectReference>
</ItemGroup>
<Import Project="..\..\..\..\..\build\Targets\Imports.targets" />
</Project>
\ No newline at end of file
</Project>
......@@ -8,7 +8,6 @@
<PlatformTarget>AnyCPU</PlatformTarget>
<ProjectGuid>{02459936-CD2C-4F61-B671-5C518F2A3DDC}</ProjectGuid>
<OutputType>Exe</OutputType>
<OutDir>$(CompilerGeneratorToolsDir)</OutDir>
<RootNamespace>Roslyn.Compilers.Internal.BoundTreeGenerator</RootNamespace>
<AssemblyName>BoundTreeGenerator</AssemblyName>
<AutoGenerateBindingRedirects>True</AutoGenerateBindingRedirects>
......@@ -19,7 +18,7 @@
<CopyReferencesByDefault>false</CopyReferencesByDefault>
<NonShipping>true</NonShipping>
<UseCommonOutputDirectory>true</UseCommonOutputDirectory>
<RoslynProjectType>CompilerGeneratorTool</RoslynProjectType>
<RoslynProjectType>ExeNonDeployment</RoslynProjectType>
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' "></PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' "></PropertyGroup>
......@@ -33,4 +32,4 @@
<None Include="project.json" />
</ItemGroup>
<Import Project="..\..\..\..\..\..\build\Targets\Imports.targets" />
</Project>
\ No newline at end of file
</Project>
......@@ -7,7 +7,6 @@
<PlatformTarget>AnyCPU</PlatformTarget>
<ProjectGuid>{288089C5-8721-458E-BE3E-78990DAB5E2E}</ProjectGuid>
<OutputType>Exe</OutputType>
<OutDir>$(CompilerGeneratorToolsDir)</OutDir>
<RootNamespace>Roslyn.Compilers.CSharp.Internal.CSharpErrorFactsGenerator</RootNamespace>
<AssemblyName>CSharpErrorFactsGenerator</AssemblyName>
<Nonshipping>true</Nonshipping>
......@@ -19,7 +18,7 @@
<CopyReferencesByDefault>false</CopyReferencesByDefault>
<NonShipping>true</NonShipping>
<UseCommonOutputDirectory>true</UseCommonOutputDirectory>
<RoslynProjectType>CompilerGeneratorTool</RoslynProjectType>
<RoslynProjectType>ExeNonDeployment</RoslynProjectType>
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' "></PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' "></PropertyGroup>
......@@ -30,4 +29,4 @@
<None Include="project.json" />
</ItemGroup>
<Import Project="..\..\..\..\..\..\build\Targets\Imports.targets" />
</Project>
\ No newline at end of file
</Project>
......@@ -6,7 +6,6 @@
<Platform Condition="'$(Platform)' == ''">AnyCPU</Platform>
<ProjectGuid>{288089C5-8721-458E-BE3E-78990DAB5E2D}</ProjectGuid>
<OutputType>Exe</OutputType>
<OutDir>$(CompilerGeneratorToolsDir)</OutDir>
<RootNamespace>Roslyn.Compilers.CSharp.Internal.CSharpSyntaxGenerator</RootNamespace>
<AssemblyName>CSharpSyntaxGenerator</AssemblyName>
<Nonshipping>true</Nonshipping>
......@@ -18,7 +17,7 @@
<CopyReferencesByDefault>false</CopyReferencesByDefault>
<NonShipping>true</NonShipping>
<UseCommonOutputDirectory>true</UseCommonOutputDirectory>
<RoslynProjectType>CompilerGeneratorTool</RoslynProjectType>
<RoslynProjectType>ExeNonDeployment</RoslynProjectType>
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' "></PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' "></PropertyGroup>
......@@ -46,4 +45,4 @@
</Content>
</ItemGroup>
<Import Project="..\..\..\..\..\..\build\Targets\Imports.targets" />
</Project>
\ No newline at end of file
</Project>
......@@ -8,7 +8,6 @@
<PlatformTarget>AnyCPU</PlatformTarget>
<ProjectGuid>{909B656F-6095-4AC2-A5AB-C3F032315C45}</ProjectGuid>
<OutputType>Exe</OutputType>
<OutDir>$(CompilerGeneratorToolsDir)</OutDir>
<StartupObject></StartupObject>
<RootNamespace>Microsoft.CodeAnalysis.VisualBasic.Internal.VBErrorFactsGenerator</RootNamespace>
<AssemblyName>VBErrorFactsGenerator</AssemblyName>
......@@ -25,7 +24,7 @@
<CopyReferencesByDefault>false</CopyReferencesByDefault>
<NonShipping>true</NonShipping>
<UseCommonOutputDirectory>true</UseCommonOutputDirectory>
<RoslynProjectType>CompilerGeneratorTool</RoslynProjectType>
<RoslynProjectType>ExeNonDeployment</RoslynProjectType>
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' "></PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' "></PropertyGroup>
......@@ -39,4 +38,4 @@
<Folder Include="My Project\" />
</ItemGroup>
<Import Project="..\..\..\..\..\..\build\Targets\Imports.targets" />
</Project>
\ No newline at end of file
</Project>
......@@ -8,7 +8,6 @@
<PlatformTarget>AnyCPU</PlatformTarget>
<ProjectGuid>{6AA96934-D6B7-4CC8-990D-DB6B9DD56E34}</ProjectGuid>
<OutputType>Exe</OutputType>
<OutDir>$(CompilerGeneratorToolsDir)</OutDir>
<StartupObject>Microsoft.CodeAnalysis.VisualBasic.Internal.VBSyntaxGenerator.Program</StartupObject>
<RootNamespace>Microsoft.CodeAnalysis.VisualBasic.Internal.VBSyntaxGenerator</RootNamespace>
<AssemblyName>VBSyntaxGenerator</AssemblyName>
......@@ -23,7 +22,7 @@
<CopyReferencesByDefault>false</CopyReferencesByDefault>
<NonShipping>true</NonShipping>
<UseCommonOutputDirectory>true</UseCommonOutputDirectory>
<RoslynProjectType>CompilerGeneratorTool</RoslynProjectType>
<RoslynProjectType>ExeNonDeployment</RoslynProjectType>
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' "></PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' "></PropertyGroup>
......@@ -70,4 +69,4 @@
<None Include="project.json" />
</ItemGroup>
<Import Project="..\..\..\..\..\..\build\Targets\Imports.targets" />
</Project>
\ No newline at end of file
</Project>
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册