Skip to content

Commit

Permalink
Add packaging system.
Browse files Browse the repository at this point in the history
  • Loading branch information
JamieSinn committed Dec 30, 2017
1 parent a712be3 commit fe0e9c4
Show file tree
Hide file tree
Showing 4 changed files with 24 additions and 0 deletions.
1 change: 1 addition & 0 deletions CSAUSBTool/CSAUSBTool.cs
Original file line number Diff line number Diff line change
Expand Up @@ -148,6 +148,7 @@ private void downloadButton_Click(object sender, EventArgs e)

private void buildISOButton_Click(object sender, EventArgs e)
{
Directory.CreateDirectory(isoFolderPath);
toolStripStatusLabel.Text = @"Building ISO Image...";
selectedFrc.BuildISO(downloadFolderPath, isoFolderPath, toolStripProgressBar);
toolStripStatusLabel.Text = @"Idle";
Expand Down
17 changes: 17 additions & 0 deletions CSAUSBTool/CSAUSBTool.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,8 @@
<IsWebBootstrapper>false</IsWebBootstrapper>
<UseApplicationTrust>false</UseApplicationTrust>
<BootstrapperEnabled>true</BootstrapperEnabled>
<NuGetPackageImportStamp>
</NuGetPackageImportStamp>
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
<PlatformTarget>AnyCPU</PlatformTarget>
Expand Down Expand Up @@ -54,6 +56,10 @@
<StartupObject>CSAUSBTool.Program</StartupObject>
</PropertyGroup>
<ItemGroup>
<Reference Include="Costura, Version=1.6.2.0, Culture=neutral, PublicKeyToken=9919ef960d84173d, processorArchitecture=MSIL">
<HintPath>..\packages\Costura.Fody.1.6.2\lib\dotnet\Costura.dll</HintPath>
<Private>False</Private>
</Reference>
<Reference Include="DiscUtils, Version=0.13.0.0, Culture=neutral, PublicKeyToken=5fa5b410cc9c6289, processorArchitecture=MSIL">
<HintPath>..\packages\DiscUtils.0.13.0-alpha\lib\net45\DiscUtils.dll</HintPath>
<Private>True</Private>
Expand Down Expand Up @@ -217,7 +223,9 @@
<None Include="App.config" />
</ItemGroup>
<ItemGroup>
<Content Include=".gitignore" />
<Content Include="firstrobotics_iconvert_rgb_tCt_icon.ico" />
<None Include="FodyWeavers.xml" />
</ItemGroup>
<ItemGroup>
<BootstrapperPackage Include=".NETFramework,Version=v4.5.2">
Expand All @@ -232,6 +240,15 @@
</BootstrapperPackage>
</ItemGroup>
<Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
<Import Project="..\packages\Fody.2.0.0\build\dotnet\Fody.targets" Condition="Exists('..\packages\Fody.2.0.0\build\dotnet\Fody.targets')" />
<Target Name="EnsureNuGetPackageBuildImports" BeforeTargets="PrepareForBuild">
<PropertyGroup>
<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>
</PropertyGroup>
<Error Condition="!Exists('..\packages\Fody.2.0.0\build\dotnet\Fody.targets')" Text="$([System.String]::Format('$(ErrorText)', '..\packages\Fody.2.0.0\build\dotnet\Fody.targets'))" />
<Error Condition="!Exists('..\packages\Costura.Fody.1.6.2\build\dotnet\Costura.Fody.targets')" Text="$([System.String]::Format('$(ErrorText)', '..\packages\Costura.Fody.1.6.2\build\dotnet\Costura.Fody.targets'))" />
</Target>
<Import Project="..\packages\Costura.Fody.1.6.2\build\dotnet\Costura.Fody.targets" Condition="Exists('..\packages\Costura.Fody.1.6.2\build\dotnet\Costura.Fody.targets')" />
<!-- To modify your build process, add your task inside one of the targets below and uncomment it.
Other similar extension points exist, see Microsoft.Common.targets.
<Target Name="BeforeBuild">
Expand Down
4 changes: 4 additions & 0 deletions CSAUSBTool/FodyWeavers.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
<?xml version="1.0" encoding="utf-8"?>
<Weavers>
<Costura />
</Weavers>
2 changes: 2 additions & 0 deletions CSAUSBTool/packages.config
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
<?xml version="1.0" encoding="utf-8"?>
<packages>
<package id="Costura.Fody" version="1.6.2" targetFramework="net452" developmentDependency="true" />
<package id="DiscUtils" version="0.13.0-alpha" targetFramework="net452" />
<package id="DiscUtils.BootConfig" version="0.13.0-alpha" targetFramework="net452" />
<package id="DiscUtils.Core" version="0.13.0-alpha" targetFramework="net452" />
Expand Down Expand Up @@ -28,4 +29,5 @@
<package id="DiscUtils.Wim" version="0.13.0-alpha" targetFramework="net452" />
<package id="DiscUtils.Xfs" version="0.13.0-alpha" targetFramework="net452" />
<package id="DiscUtils.Xva" version="0.13.0-alpha" targetFramework="net452" />
<package id="Fody" version="2.0.0" targetFramework="net452" developmentDependency="true" />
</packages>

0 comments on commit fe0e9c4

Please sign in to comment.