-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathdotnet-conesole.targets
More file actions
28 lines (27 loc) · 1.09 KB
/
dotnet-conesole.targets
File metadata and controls
28 lines (27 loc) · 1.09 KB
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
<Project xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<Target Name="Cone-TargetInfo">
<PropertyGroup>
<Fx>$(TargetFramework)</Fx>
<Fx Condition="'$(TargetFramework)'==''">$(TargetFrameworks)</Fx>
</PropertyGroup>
<ItemGroup>
<_TargetFramework Include="$(Fx.Split(';'))" />
</ItemGroup>
<WriteLinesToFile Encoding="UTF-8" File="$(Cone-TargetFile)" Lines="" Overwrite="true" />
<MSBuild Projects="$(MSBuildProjectFullPath)" Targets="Cone-WriteOutput" Properties="TargetFramework=%(_TargetFramework.Identity)" />
</Target>
<Target Name="Cone-WriteOutput">
<PropertyGroup>
<Lines>
{
Target: "$(MSBuildProjectName)",
OutputPath: "$(OutputPath.Replace('\', '/'))",
Configuration: "$(Configuration)",
TargetFileName: "$(TargetFileName)",
TargetFramework: "$(TargetFramework)"
}
</Lines>
</PropertyGroup>
<WriteLinesToFile Encoding="UTF-8" File="$(Cone-TargetFile)" Lines="$(Lines)" Overwrite="false" />
</Target>
</Project>