-
Notifications
You must be signed in to change notification settings - Fork 31
Expand file tree
/
Copy pathBasicExampleCon.csproj
More file actions
109 lines (105 loc) · 4.75 KB
/
Copy pathBasicExampleCon.csproj
File metadata and controls
109 lines (105 loc) · 4.75 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
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
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
<?xml version="1.0" encoding="utf-8"?>
<Project ToolsVersion="15.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<Import Project="$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props" Condition="Exists('$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props')" />
<PropertyGroup>
<LangVersion>latest</LangVersion>
<Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
<Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform>
<ProjectGuid>{32DD97ED-EC7C-4667-9D95-1DFD5E7A7DB9}</ProjectGuid>
<OutputType>Exe</OutputType>
<RootNamespace>BasicExampleCon</RootNamespace>
<AssemblyName>BasicExampleCon</AssemblyName>
<!-- Target framework bumped to .NET Framework 4.6.2 -->
<TargetFrameworkVersion>v4.6.2</TargetFrameworkVersion>
<FileAlignment>512</FileAlignment>
<AutoGenerateBindingRedirects>true</AutoGenerateBindingRedirects>
<Deterministic>true</Deterministic>
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
<PlatformTarget>AnyCPU</PlatformTarget>
<DebugSymbols>true</DebugSymbols>
<DebugType>full</DebugType>
<Optimize>false</Optimize>
<OutputPath>bin\Debug\</OutputPath>
<DefineConstants>DEBUG;TRACE</DefineConstants>
<ErrorReport>prompt</ErrorReport>
<WarningLevel>4</WarningLevel>
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
<PlatformTarget>AnyCPU</PlatformTarget>
<DebugType>pdbonly</DebugType>
<Optimize>true</Optimize>
<OutputPath>bin\Release\</OutputPath>
<DefineConstants>TRACE</DefineConstants>
<ErrorReport>prompt</ErrorReport>
<WarningLevel>4</WarningLevel>
</PropertyGroup>
<PropertyGroup>
<SignAssembly>true</SignAssembly>
</PropertyGroup>
<PropertyGroup>
<AssemblyOriginatorKeyFile>test.snk</AssemblyOriginatorKeyFile>
</PropertyGroup>
<ItemGroup>
<Reference Include="System" />
<Reference Include="System.Core" />
<Reference Include="System.Xml.Linq" />
<Reference Include="System.Data.DataSetExtensions" />
<Reference Include="Microsoft.CSharp" />
<Reference Include="System.Data" />
<Reference Include="System.Net.Http" />
<Reference Include="System.Xml" />
</ItemGroup>
<ItemGroup>
<Compile Include="Program.cs" />
<Compile Include="Properties\AssemblyInfo.cs" />
</ItemGroup>
<ItemGroup>
<None Include="App.config" />
<None Include="test.snk">
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
</None>
</ItemGroup>
<ItemGroup>
<ProjectReference Include="..\BasicExampleLibrary\BasicExampleLibrary.csproj">
<Project>{A0C6B6A8-50C0-4EC4-B1A7-8B237ADA0999}</Project>
<Name>BasicExampleLibrary</Name>
</ProjectReference>
</ItemGroup>
<!-- obfuscar.xml is generated at build time as obfuscar.generated.xml; remove static Content entry -->
<ItemGroup>
<PackageReference Include="Obfuscar">
<IncludeAssets>runtime; build; native; contentfiles; analyzers</IncludeAssets>
<PrivateAssets>all</PrivateAssets>
</PackageReference>
</ItemGroup>
<Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
<PropertyGroup>
<PostBuildEvent>"$(Obfuscar)" obfuscar.generated.xml</PostBuildEvent>
</PropertyGroup>
<Target Name="GenerateObfuscarConfig" BeforeTargets="PostBuildEvent">
<PropertyGroup>
<_ProjectDir>$(MSBuildProjectDirectory)</_ProjectDir>
<_OutDir>$(OutputPath)</_OutDir>
<_InPath>$(_ProjectDir)\$(_OutDir)</_InPath>
<_OutPath>$(_InPath)Obfuscator_Output</_OutPath>
<_KeyFile>$(_ProjectDir)\test.snk</_KeyFile>
<_ConfigFile>$(_InPath)obfuscar.generated.xml</_ConfigFile>
</PropertyGroup>
<ItemGroup>
<_ObfuscarLines Include="<?xml version='1.0'?>" />
<_ObfuscarLines Include="<Obfuscator>" />
<_ObfuscarLines Include=" <Var name='InPath' value='$(_InPath)' />" />
<_ObfuscarLines Include=" <Var name='OutPath' value='$(_OutPath)' />" />
<_ObfuscarLines Include=" <Var name='HidePrivateApi' value='true' />" />
<_ObfuscarLines Include=" <Var name='KeyFile' value='$(_KeyFile)' />" />
<_ObfuscarLines Include=" " />
<_ObfuscarLines Include=" <Module file='$(_InPath)BasicExampleCon.exe' />" />
<_ObfuscarLines Include=" <Module file='$(_InPath)BasicExampleLibrary.dll' />" />
<_ObfuscarLines Include="</Obfuscator>" />
</ItemGroup>
<Message Importance="high" Text="Generating obfuscar config at: $(_ConfigFile)" />
<WriteLinesToFile File="$(_ConfigFile)" Overwrite="true" Lines="@(_ObfuscarLines)" />
<Message Importance="high" Text="Obfuscar config generated successfully" />
</Target>
</Project>