Skip to content
This repository was archived by the owner on Jul 15, 2023. It is now read-only.
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions Directory.Build.props
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,8 @@
<FullLicenseFile>$(MSBuildThisFileDirectory)\LICENSE</FullLicenseFile>
<OutputFullPath>$(MSBuildThisFileDirectory)</OutputFullPath>
<OutputDrop Condition=" '$(OutputDrop)' == '' ">$(OutputFullPath)bin\$(Configuration)\</OutputDrop>
<RawBinariesDropDirectory Condition=" '$(RawBinariesDropDirectory)' == '' ">$(OutputDrop)\raw\binaries</RawBinariesDropDirectory>
<RawSymbolsDropDirectory Condition=" '$(RawSymbolsDropDirectory)' == '' ">$(OutputDrop)\raw\symbols</RawSymbolsDropDirectory>
<OutputPath>$(OutputDrop)\$(MSBuildProjectName)\</OutputPath>
<DocumentationFile>$(OutputPath)$(MSBuildProjectName).xml</DocumentationFile>
<BaseIntermediateOutputPath>$(OutputFullPath)obj\$(MSBuildProjectName)\</BaseIntermediateOutputPath>
Expand All @@ -40,6 +42,8 @@
<PropertyGroup>
<IsTest>false</IsTest>
<IsTest Condition="$(MSBuildProjectName.ToLowerInvariant().Contains('test'))">true</IsTest>
<IsVsix>false</IsVsix>
<IsVsix Condition="$(MSBuildProjectName.ToLowerInvariant().Contains('vsix'))">true</IsVsix>
</PropertyGroup>

<!--NuGet properties-->
Expand Down
17 changes: 16 additions & 1 deletion Directory.Build.targets
Original file line number Diff line number Diff line change
Expand Up @@ -70,8 +70,23 @@
<Target Name="RemoveEmbeddedResources"
BeforeTargets="CoreCompile">
<ItemGroup>
<Compile Remove="@(EmbeddedResource-> '%(Identity)')" />
<Compile Remove="@(EmbeddedResource-> '%(Identity)')" />
</ItemGroup>
</Target>

<Target Name="CopyBuildOutputToRawDirectory"
AfterTargets="AfterBuild"
Condition="!$(IsTest) AND !$(IsVsix)">
<MakeDir Directories="$(RawBinariesDropDirectory)\$(TargetFramework)" />
<Message Text="Copying $(OutDir)\$(TargetName)$(TargetExt) to $(RawBinariesDropDirectory)\$(TargetFramework)"
Importance="low" />
<Copy SourceFiles="$(OutDir)\$(TargetName)$(TargetExt)"
DestinationFolder="$(RawBinariesDropDirectory)\$(TargetFramework)" />
<MakeDir Directories="$(RawSymbolsDropDirectory)\$(TargetFramework)" />
<Message Text="Copying $(OutDir)\$(TargetName).pdb to $(RawSymbolsDropDirectory)\$(TargetFramework)"
Importance="low" />
<Copy SourceFiles="$(OutDir)\$(TargetName).pdb"
DestinationFolder="$(RawSymbolsDropDirectory)\$(TargetFramework)" />
</Target>

</Project>