Skip to content

Commit ec7606f

Browse files
committed
Avoid app being spread over multiple files.
1 parent 3db5dfc commit ec7606f

File tree

3 files changed

+22
-1
lines changed

3 files changed

+22
-1
lines changed
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
<?xml version="1.0" encoding="utf-8"?>
2+
<Weavers>
3+
<Costura/>
4+
5+
</Weavers>

src/Timon/Timon.Exe/Timon.Exe.csproj

Lines changed: 15 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,8 @@
1414
<ProjectTypeGuids>{60dc8134-eba5-43b8-bcc9-bb4bc16c2548};{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}</ProjectTypeGuids>
1515
<WarningLevel>4</WarningLevel>
1616
<AutoGenerateBindingRedirects>true</AutoGenerateBindingRedirects>
17+
<NuGetPackageImportStamp>
18+
</NuGetPackageImportStamp>
1719
</PropertyGroup>
1820
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
1921
<PlatformTarget>AnyCPU</PlatformTarget>
@@ -171,7 +173,9 @@
171173
<Generator>ResXFileCodeGenerator</Generator>
172174
<LastGenOutput>Resources.Designer.cs</LastGenOutput>
173175
</EmbeddedResource>
174-
<None Include="packages.config" />
176+
<None Include="packages.config">
177+
<SubType>Designer</SubType>
178+
</None>
175179
<None Include="Properties\Settings.settings">
176180
<Generator>SettingsSingleFileGenerator</Generator>
177181
<LastGenOutput>Settings.Designer.cs</LastGenOutput>
@@ -195,7 +199,17 @@
195199
<Analyzer Include="..\packages\Microsoft.CodeAnalysis.Analyzers.1.1.0\analyzers\dotnet\cs\Microsoft.CodeAnalysis.Analyzers.dll" />
196200
<Analyzer Include="..\packages\Microsoft.CodeAnalysis.Analyzers.1.1.0\analyzers\dotnet\cs\Microsoft.CodeAnalysis.CSharp.Analyzers.dll" />
197201
</ItemGroup>
202+
<ItemGroup>
203+
<Resource Include="FodyWeavers.xml" />
204+
</ItemGroup>
198205
<Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
206+
<Import Project="..\packages\Fody.1.28.3\build\Fody.targets" Condition="Exists('..\packages\Fody.1.28.3\build\Fody.targets')" />
207+
<Target Name="EnsureNuGetPackageBuildImports" BeforeTargets="PrepareForBuild">
208+
<PropertyGroup>
209+
<ErrorText>This project references NuGet package(s) that are missing on this computer. Use NuGet Package Restore to download them. For more information, see http://go.microsoft.com/fwlink/?LinkID=322105. The missing file is {0}.</ErrorText>
210+
</PropertyGroup>
211+
<Error Condition="!Exists('..\packages\Fody.1.28.3\build\Fody.targets')" Text="$([System.String]::Format('$(ErrorText)', '..\packages\Fody.1.28.3\build\Fody.targets'))" />
212+
</Target>
199213
<!-- To modify your build process, add your task inside one of the targets below and uncomment it.
200214
Other similar extension points exist, see Microsoft.Common.targets.
201215
<Target Name="BeforeBuild">

src/Timon/Timon.Exe/packages.config

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,9 @@
11
<?xml version="1.0" encoding="utf-8"?>
22
<packages>
33
<package id="AvalonEdit" version="5.0.2" targetFramework="net461" />
4+
<package id="Costura.Fody" version="1.3.3.0" targetFramework="net461" developmentDependency="true" />
45
<package id="fasterflect" version="2.1.3" targetFramework="net461" />
6+
<package id="Fody" version="1.28.3" targetFramework="net461" developmentDependency="true" />
57
<package id="Microsoft.CodeAnalysis.Analyzers" version="1.1.0" targetFramework="net461" />
68
<package id="Microsoft.CodeAnalysis.Common" version="1.1.1" targetFramework="net461" />
79
<package id="Microsoft.CodeAnalysis.CSharp" version="1.1.1" targetFramework="net461" />

0 commit comments

Comments
 (0)