Build improvements

This commit is contained in:
CreepyCrafter24 2019-12-01 15:14:40 +01:00
parent 6672c164db
commit 204313624e
2 changed files with 7 additions and 2 deletions

View File

@ -68,7 +68,7 @@ namespace cashew
{ {
ar.ExtractToDirectory(Path.Combine(Path.GetTempPath(), "Cashew\\Python")); ar.ExtractToDirectory(Path.Combine(Path.GetTempPath(), "Cashew\\Python"));
} }
infoPanel.Text = "This Program uses:" + string.Join("", XDocument.Parse(Resources.packages).Element("packages").Elements("package").Select(s => "\r\n- " + s.Attribute("id").Value + " " + s.Attribute("version").Value)); infoPanel.Text = "This Program uses:" + string.Join("", XDocument.Parse(Resources.packages).Element("packages").Elements("package").Select(s => "\r\n- " + s.Attribute("id").Value + " " + s.Attribute("version").Value).OrderBy(s => s));
} }
private void MAIN_Load(object sender, EventArgs e) => BringToFront(); private void MAIN_Load(object sender, EventArgs e) => BringToFront();

View File

@ -28,7 +28,7 @@
</PropertyGroup> </PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' "> <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
<PlatformTarget>AnyCPU</PlatformTarget> <PlatformTarget>AnyCPU</PlatformTarget>
<DebugType>pdbonly</DebugType> <DebugType>none</DebugType>
<Optimize>true</Optimize> <Optimize>true</Optimize>
<OutputPath>bin\Release\</OutputPath> <OutputPath>bin\Release\</OutputPath>
<DefineConstants>TRACE</DefineConstants> <DefineConstants>TRACE</DefineConstants>
@ -218,4 +218,9 @@
</COMReference> </COMReference>
</ItemGroup> </ItemGroup>
<Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" /> <Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
<PropertyGroup>
<PostBuildEvent>cd $(TargetDir)
if $(ConfigurationName)==Release del *.xml
if $(ConfigurationName)==Release del *.pdb</PostBuildEvent>
</PropertyGroup>
</Project> </Project>