-
Notifications
You must be signed in to change notification settings - Fork 13
/
Vostok.Tools.Publicize.Roslyn.props
31 lines (23 loc) · 1.16 KB
/
Vostok.Tools.Publicize.Roslyn.props
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
<Project TreatAsLocalProperty="PublicizeRoslynTaskAssembly;PublicizeCs">
<PropertyGroup>
<PublicizeRoslynTaskAssembly>$(MSBuildThisFileDirectory)Vostok.Tools.Publicize.Roslyn.v1.dll</PublicizeRoslynTaskAssembly>
</PropertyGroup>
<UsingTask TaskName="Vostok.Tools.Publicize.Roslyn.PublicizeRoslyn" AssemblyFile="$(PublicizeRoslynTaskAssembly)" />
<Target Name="PublicizeRoslynTarget" BeforeTargets="BeforeBuild">
<ItemGroup>
<PublicizeCs Include="**\*.cs" />
<PublicizeCs Remove="bin\**\*.cs" />
<PublicizeCs Remove="obj\**\*.cs" />
<PublicizeCs Remove="Properties\**\*.cs" />
</ItemGroup>
<PublicizeRoslyn
ProjectDirectory="$(ProjectDir)"
SourceFiles="@(PublicizeCs)"
DestinationDirectory="$(ProjectDir)obj\$(Configuration)\$(TargetFramework)\"
PublicApiAttributes="PublicAPI"/>
<ItemGroup>
<Compile Remove="%(PublicizeCs.RelativeDir)%(PublicizeCs.FileName)%(PublicizeCs.Extension)" />
<Compile Include="$(ProjectDir)obj\$(Configuration)\$(TargetFramework)\%(PublicizeCs.RelativeDir)%(PublicizeCs.FileName)%(PublicizeCs.Extension)" />
</ItemGroup>
</Target>
</Project>