Insert icon into osu exe

This commit is contained in:
Vlad K 2017-06-27 02:10:00 +03:00
parent 5910d7f971
commit b105d6d741
2 changed files with 3 additions and 2 deletions

View File

@ -12,6 +12,7 @@
using System.IO;
using System.Threading.Tasks;
using osu.Game.Screens.Menu;
using System.Resources;
namespace osu.Desktop
{
@ -45,7 +46,7 @@ public override void SetHost(GameHost host)
{
desktopWindow.CursorState |= CursorState.Hidden;
desktopWindow.Icon = Icon.ExtractAssociatedIcon(Assembly.GetExecutingAssembly().Location);
desktopWindow.Icon = new Icon(Assembly.GetExecutingAssembly().GetManifestResourceStream(this.GetType(), "lazer.ico"));
desktopWindow.Title = Name;
desktopWindow.DragEnter += dragEnter;

View File

@ -232,7 +232,7 @@
<Compile Include="Properties\AssemblyInfo.cs" />
</ItemGroup>
<ItemGroup>
<Content Include="lazer.ico" />
<EmbeddedResource Include="lazer.ico" />
</ItemGroup>
<Import Project="$(MSBuildBinPath)\Microsoft.CSharp.targets" />
<!-- To modify your build process, add your task inside one of the targets below and uncomment it.