|
9 | 9 | <AppDesignerFolder>Properties</AppDesignerFolder>
|
10 | 10 | <RootNamespace>GitHubReleaseManager.Cli</RootNamespace>
|
11 | 11 | <AssemblyName>GitHubReleaseManager</AssemblyName>
|
12 |
| - <TargetFrameworkVersion>v4.5</TargetFrameworkVersion> |
| 12 | + <TargetFrameworkVersion>v4.5.1</TargetFrameworkVersion> |
13 | 13 | <FileAlignment>512</FileAlignment>
|
14 |
| - <NuGetPackageImportStamp>b15419ce</NuGetPackageImportStamp> |
| 14 | + <NuGetPackageImportStamp>c177904e</NuGetPackageImportStamp> |
15 | 15 | <SolutionDir Condition="$(SolutionDir) == '' Or $(SolutionDir) == '*Undefined*'">..\</SolutionDir>
|
16 | 16 | <RestorePackages>true</RestorePackages>
|
17 | 17 | <BuildToolsFxCopVersion>1.0.1</BuildToolsFxCopVersion>
|
| 18 | + <TargetFrameworkProfile /> |
| 19 | + <PublishUrl>publish\</PublishUrl> |
| 20 | + <Install>true</Install> |
| 21 | + <InstallFrom>Disk</InstallFrom> |
| 22 | + <UpdateEnabled>false</UpdateEnabled> |
| 23 | + <UpdateMode>Foreground</UpdateMode> |
| 24 | + <UpdateInterval>7</UpdateInterval> |
| 25 | + <UpdateIntervalUnits>Days</UpdateIntervalUnits> |
| 26 | + <UpdatePeriodically>false</UpdatePeriodically> |
| 27 | + <UpdateRequired>false</UpdateRequired> |
| 28 | + <MapFileExtensions>true</MapFileExtensions> |
| 29 | + <ApplicationRevision>0</ApplicationRevision> |
| 30 | + <ApplicationVersion>1.0.0.%2a</ApplicationVersion> |
| 31 | + <IsWebBootstrapper>false</IsWebBootstrapper> |
| 32 | + <UseApplicationTrust>false</UseApplicationTrust> |
| 33 | + <BootstrapperEnabled>true</BootstrapperEnabled> |
18 | 34 | </PropertyGroup>
|
19 | 35 | <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
|
20 | 36 | <PlatformTarget>AnyCPU</PlatformTarget>
|
|
33 | 49 | <PlatformTarget>AnyCPU</PlatformTarget>
|
34 | 50 | <DebugType>pdbonly</DebugType>
|
35 | 51 | <Optimize>true</Optimize>
|
36 |
| - <OutputPath>..\..\BuildArtifacts\</OutputPath> |
37 |
| - <DefineConstants>TRACE;CODE_ANALYSIS</DefineConstants> |
| 52 | + <OutputPath>bin\Release\</OutputPath> |
| 53 | + <DefineConstants>TRACE;CODE_ANALYSIS;</DefineConstants> |
38 | 54 | <ErrorReport>prompt</ErrorReport>
|
39 | 55 | <WarningLevel>4</WarningLevel>
|
40 |
| - <RunCodeAnalysis>True</RunCodeAnalysis> |
| 56 | + <RunCodeAnalysis>false</RunCodeAnalysis> |
41 | 57 | <CodeAnalysisRuleSet>..\GitHubReleaseManager.ruleset</CodeAnalysisRuleSet>
|
42 | 58 | <CodeAnalysisTreatWarningsAsErrors>True</CodeAnalysisTreatWarningsAsErrors>
|
43 | 59 | </PropertyGroup>
|
|
66 | 82 | <Compile Include="PublishSubOptions.cs" />
|
67 | 83 | </ItemGroup>
|
68 | 84 | <ItemGroup>
|
| 85 | + <None Include="app.config" /> |
69 | 86 | <None Include="packages.config">
|
70 | 87 | <SubType>Designer</SubType>
|
71 | 88 | </None>
|
|
80 | 97 | <CodeAnalysisDictionary Include="..\CustomDictionary.xml">
|
81 | 98 | <Link>CustomDictionary.xml</Link>
|
82 | 99 | </CodeAnalysisDictionary>
|
83 |
| - <Content Include="FodyWeavers.xml" /> |
| 100 | + </ItemGroup> |
| 101 | + <ItemGroup> |
| 102 | + <BootstrapperPackage Include=".NETFramework,Version=v4.5.1"> |
| 103 | + <Visible>False</Visible> |
| 104 | + <ProductName>Microsoft .NET Framework 4.5.1 %28x86 and x64%29</ProductName> |
| 105 | + <Install>true</Install> |
| 106 | + </BootstrapperPackage> |
| 107 | + <BootstrapperPackage Include="Microsoft.Net.Client.3.5"> |
| 108 | + <Visible>False</Visible> |
| 109 | + <ProductName>.NET Framework 3.5 SP1 Client Profile</ProductName> |
| 110 | + <Install>false</Install> |
| 111 | + </BootstrapperPackage> |
| 112 | + <BootstrapperPackage Include="Microsoft.Net.Framework.3.5.SP1"> |
| 113 | + <Visible>False</Visible> |
| 114 | + <ProductName>.NET Framework 3.5 SP1</ProductName> |
| 115 | + <Install>false</Install> |
| 116 | + </BootstrapperPackage> |
84 | 117 | </ItemGroup>
|
85 | 118 | <Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
|
86 | 119 | <Target Name="EnsureNuGetPackageBuildImports" BeforeTargets="PrepareForBuild">
|
87 | 120 | <PropertyGroup>
|
88 | 121 | <ErrorText>This project references NuGet package(s) that are missing on this computer. Enable NuGet Package Restore to download them. For more information, see http://go.microsoft.com/fwlink/?LinkID=322105. The missing file is {0}.</ErrorText>
|
89 | 122 | </PropertyGroup>
|
90 |
| - <Error Condition="!Exists('..\packages\Fody.1.26.1\build\Fody.targets')" Text="$([System.String]::Format('$(ErrorText)', '..\packages\Fody.1.26.1\build\Fody.targets'))" /> |
91 | 123 | <Error Condition="!Exists('..\packages\StyleCop.MSBuild.4.7.49.1\build\StyleCop.MSBuild.Targets')" Text="$([System.String]::Format('$(ErrorText)', '..\packages\StyleCop.MSBuild.4.7.49.1\build\StyleCop.MSBuild.Targets'))" />
|
92 | 124 | <Error Condition="!Exists('..\packages\StyleCop.Error.MSBuild.1.0.0\build\StyleCop.Error.MSBuild.Targets')" Text="$([System.String]::Format('$(ErrorText)', '..\packages\StyleCop.Error.MSBuild.1.0.0\build\StyleCop.Error.MSBuild.Targets'))" />
|
93 | 125 | </Target>
|
94 |
| - <UsingTask TaskName="CosturaCleanup" AssemblyFile="$(MSBuildToolsPath)\Microsoft.Build.Tasks.v4.0.dll" TaskFactory="CodeTaskFactory"> |
95 |
| - <ParameterGroup> |
96 |
| - <Config Output="false" Required="true" ParameterType="Microsoft.Build.Framework.ITaskItem" /> |
97 |
| - <Files Output="false" Required="true" ParameterType="Microsoft.Build.Framework.ITaskItem[]" /> |
98 |
| - </ParameterGroup> |
99 |
| - <Task Evaluate="true"> |
100 |
| - <Reference xmlns="http://schemas.microsoft.com/developer/msbuild/2003" Include="System.Xml" /> |
101 |
| - <Reference xmlns="http://schemas.microsoft.com/developer/msbuild/2003" Include="System.Xml.Linq" /> |
102 |
| - <Using xmlns="http://schemas.microsoft.com/developer/msbuild/2003" Namespace="System" /> |
103 |
| - <Using xmlns="http://schemas.microsoft.com/developer/msbuild/2003" Namespace="System.IO" /> |
104 |
| - <Using xmlns="http://schemas.microsoft.com/developer/msbuild/2003" Namespace="System.Xml.Linq" /> |
105 |
| - <Code xmlns="http://schemas.microsoft.com/developer/msbuild/2003" Type="Fragment" Language="cs"><![CDATA[ |
106 |
| -var config = XElement.Load(Config.ItemSpec).Elements("Costura").FirstOrDefault(); |
107 |
| -
|
108 |
| -if (config == null) return true; |
109 |
| -
|
110 |
| -var excludedAssemblies = new List<string>(); |
111 |
| -var attribute = config.Attribute("ExcludeAssemblies"); |
112 |
| -if (attribute != null) |
113 |
| - foreach (var item in attribute.Value.Split('|').Select(x => x.Trim()).Where(x => x != string.Empty)) |
114 |
| - excludedAssemblies.Add(item); |
115 |
| -var element = config.Element("ExcludeAssemblies"); |
116 |
| -if (element != null) |
117 |
| - foreach (var item in element.Value.Split(new[] { "\r\n", "\n" }, StringSplitOptions.RemoveEmptyEntries).Select(x => x.Trim()).Where(x => x != string.Empty)) |
118 |
| - excludedAssemblies.Add(item); |
119 |
| -
|
120 |
| -var filesToCleanup = Files.Select(f => f.ItemSpec).Where(f => !excludedAssemblies.Contains(Path.GetFileNameWithoutExtension(f), StringComparer.InvariantCultureIgnoreCase)); |
121 |
| -
|
122 |
| -foreach (var item in filesToCleanup) |
123 |
| - File.Delete(item); |
124 |
| -]]></Code> |
125 |
| - </Task> |
126 |
| - </UsingTask> |
127 |
| - <Target Name="CleanReferenceCopyLocalPaths" AfterTargets="AfterBuild;NonWinFodyTarget"> |
128 |
| - <CosturaCleanup Config="FodyWeavers.xml" Files="@(ReferenceCopyLocalPaths->'$(OutDir)%(DestinationSubDirectory)%(Filename)%(Extension)')" /> |
129 |
| - </Target> |
130 |
| - <Import Project="..\packages\Fody.1.26.1\build\Fody.targets" Condition="Exists('..\packages\Fody.1.26.1\build\Fody.targets')" /> |
131 | 126 | <Import Project="..\..\BuildScripts\CodeAnalysis.props" Condition="Exists('..\..\BuildScripts\CodeAnalysis.props')" />
|
132 | 127 | <Import Project="..\..\BuildScripts\StyleCop.props" Condition="Exists('..\..\BuildScripts\StyleCop.props')" />
|
133 | 128 | <Import Project="..\packages\StyleCop.MSBuild.4.7.49.1\build\StyleCop.MSBuild.Targets" Condition="Exists('..\packages\StyleCop.MSBuild.4.7.49.1\build\StyleCop.MSBuild.Targets')" />
|
|
0 commit comments