Exclude more projects and condition targets for source-build.

上级 1cdde338
<Project>
<Import Project="$([MSBuild]::GetPathOfFileAbove('Directory.Build.props', '$(MSBuildThisFileDirectory)../'))" />
<PropertyGroup>
<ExcludeFromSourceBuild>true</ExcludeFromSourceBuild>
</PropertyGroup>
</Project>
......@@ -49,7 +49,8 @@
<Target Name="_Generate32BitCsc"
AfterTargets="Build"
Inputs="$(ArtifactsBinDir)csc\$(Configuration)\net472\csc.exe"
Outputs="$(IntermediateOutputPath)csc.exe">
Outputs="$(IntermediateOutputPath)csc.exe"
Condition="'$(DotNetBuildFromSource)' != 'true'">
<Copy SourceFiles="$(ArtifactsBinDir)csc\$(Configuration)\net472\csc.exe" DestinationFiles="$(IntermediateOutputPath)csc.exe"/>
<Microsoft.DotNet.Arcade.Sdk.SetCorFlags FilePath="$(IntermediateOutputPath)csc.exe" AddFlags="Prefers32Bit,Requires32Bit" />
......
......@@ -56,7 +56,8 @@
AfterTargets="Build"
BeforeTargets="SwixBuild"
DependsOnTargets="_SetSwrFilePath;InitializeDesktopCompilerArtifacts;_PrepareDesktopCompilerArtifactsForOptimization;ApplyOptimizations"
Outputs="$(_SwrFilePath)">
Outputs="$(_SwrFilePath)"
Condition="'$(DotNetBuildFromSource)' != 'true'">
<ItemGroup>
<_File Include="@(DesktopCompilerArtifact)">
......
......@@ -2,4 +2,4 @@
<Project>
<Import Project="..\..\..\Directory.Build.targets" />
<Import Project="$(RepositoryEngineeringDir)targets\PackageProject.targets" Condition="'$(TargetFramework)' != ''"/>
</Project>
\ No newline at end of file
</Project>
......@@ -23,7 +23,8 @@
AfterTargets="Pack"
DependsOnTargets="_CalculateInputsOutputs;ResolveProjectReferences"
Inputs="$(MSBuildAllProjects);$(_DeploymentVsixPath)"
Outputs="$(_InstallerFilePath)">
Outputs="$(_InstallerFilePath)"
Condition="'$(DotNetBuildFromSource)' != 'true'">
<ItemGroup>
<_Files Include="$(MSBuildProjectDirectory)\tools\*.*" TargetDir="tools"/>
<_Files Include="$(MSBuildProjectDirectory)\scripts\*.*" TargetDir=""/>
......@@ -42,4 +43,4 @@
<FileWrites Include="$(_InstallerFilePath)"/>
</ItemGroup>
</Target>
</Project>
\ No newline at end of file
</Project>
......@@ -5,6 +5,7 @@
<OutputType>Library</OutputType>
<RootNamespace>Microsoft.CodeAnalysis</RootNamespace>
<TargetFramework>net472</TargetFramework>
<ExcludeFromSourceBuild>true</ExcludeFromSourceBuild>
</PropertyGroup>
<ItemGroup>
<Reference Include="System.ComponentModel.Composition" />
......@@ -61,4 +62,4 @@
<PublicAPI Include="PublicAPI.Shipped.txt" />
<PublicAPI Include="PublicAPI.Unshipped.txt" />
</ItemGroup>
</Project>
\ No newline at end of file
</Project>
......@@ -7,6 +7,7 @@
<AllowUnsafeBlocks>true</AllowUnsafeBlocks>
<TargetFrameworks>$(RoslynPortableTargetFrameworks)</TargetFrameworks>
<DefineConstants>$(DefineConstants);WORKSPACE_MSBUILD</DefineConstants>
<ExcludeFromSourceBuild>true</ExcludeFromSourceBuild>
<!-- NuGet -->
<IsPackable>true</IsPackable>
......@@ -53,4 +54,4 @@
<InternalsVisibleTo Include="Microsoft.CodeAnalysis.EditorFeatures2.UnitTests" />
<InternalsVisibleTo Include="DynamicProxyGenAssembly2" Key="$(MoqPublicKey)" LoadsWithinVisualStudio="false" />
</ItemGroup>
</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.
先完成此消息的编辑!
想要评论请 注册