-
Notifications
You must be signed in to change notification settings - Fork 0
/
AssemblyExposer.MSBuild.Task.csproj
82 lines (76 loc) · 3.84 KB
/
AssemblyExposer.MSBuild.Task.csproj
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
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<TargetFramework>net48</TargetFramework>
<LangVersion>11</LangVersion>
<AllowUnsafeBlocks>true</AllowUnsafeBlocks>
<Configurations>Debug;Release</Configurations>
<Platforms>AnyCPU</Platforms>
<Nullable>enable</Nullable>
<WarningsAsErrors>Nullable</WarningsAsErrors>
<PackRelease>true</PackRelease>
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)' == 'Release' ">
<DebugType>embedded</DebugType>
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)' == 'Debug' ">
<DebugType>full</DebugType>
</PropertyGroup>
<PropertyGroup>
<AssemblyTitle>Assembly Exposer</AssemblyTitle>
<Copyright>MIT License (C) ONIMP Team $([System.DateTime]::Now.ToString(`yyyy`))</Copyright>
<Company>ONIMP Team</Company>
<RepositoryUrl>https://github.com/onimp/AssemblyExposer.MSBuild.Task</RepositoryUrl>
<RepositoryType>git</RepositoryType>
<Description>Modifies assemblies members visibility modifiers by set rules</Description>
<Authors>polycone,zuev93</Authors>
<PackageRequireLicenseAcceptance>false</PackageRequireLicenseAcceptance>
<PackageLicenseExpression>MIT</PackageLicenseExpression>
<PackageProjectUrl>$(RepositoryUrl)</PackageProjectUrl>
<PackageTags>exposer,assembly-exposer,make-assembly-public</PackageTags>
<BuildOutputTargetFolder>tasks</BuildOutputTargetFolder>
<TargetsForTfmSpecificBuildOutput>
$(TargetsForTfmSpecificBuildOutput);CopyProjectReferencesToPackage
</TargetsForTfmSpecificBuildOutput>
<NoWarn>NU5100,NU5127,NU5128</NoWarn>
</PropertyGroup>
<Target Name="CopyProjectReferencesToPackage" DependsOnTargets="ResolveReferences">
<ItemGroup>
<BuildOutputInPackage
Include="@(ReferenceCopyLocalPaths)"
TargetPath="%(ReferenceCopyLocalPaths.DestinationSubPath)" />
</ItemGroup>
</Target>
<ItemGroup>
<Content Include="build\**" PackagePath="build\"/>
</ItemGroup>
<ItemGroup>
<PackageReference Include="Microsoft.Build.Utilities.Core" Version="17.5.0" PrivateAssets="all" ExcludeAssets="Runtime" />
<PackageReference Include="dnlib" Version="3.6.0" PrivateAssets="all" />
</ItemGroup>
<Target Name="SetVersionAttributes" BeforeTargets="InitializeSourceControlInformation">
<Exec
Command="git describe --long --always --dirty --exclude=* --abbrev=8"
ConsoleToMSBuild="True"
IgnoreExitCode="False"
>
<Output PropertyName="GitRevision" TaskParameter="ConsoleOutput"/>
</Exec>
<Exec Command="git describe --tag --abbrev=0" ConsoleToMSBuild="True" IgnoreExitCode="False">
<Output PropertyName="GitVersion" TaskParameter="ConsoleOutput"/>
</Exec>
<CreateProperty Value="$([System.Text.RegularExpressions.Regex]::Match($(GitVersion), [^v].*))">
<Output TaskParameter="Value" PropertyName="GitVersion"/>
</CreateProperty>
<CreateProperty Value="$([System.Text.RegularExpressions.Regex]::Match($(GitVersion), \d+\.\d+.\d+))">
<Output TaskParameter="Value" PropertyName="GitNumericVersion"/>
</CreateProperty>
<PropertyGroup>
<BuildVersion>$(GitVersion)-$(GitRevision)</BuildVersion>
<InformationalVersion>$(BuildVersion)</InformationalVersion>
<FileVersion>$(GitNumericVersion).0</FileVersion>
<AssemblyVersion>$(GitNumericVersion)</AssemblyVersion>
<PackageVersion>$(GitNumericVersion)</PackageVersion>
</PropertyGroup>
<Message Text="Build version = $(InformationalVersion)" Importance="high"/>
</Target>
</Project>