Search code examples
wpfvisual-studio-2015splash-screen

wpf use splash.png only in release


in my wpf project I added splash.png image to Resources and when the application run, works perfectly...

My question is: it's possible use the splash.png only in Release and not in Debug?

thanks in advance


Solution

  • You could try to manually edit the MSBuild script file as suggested here:

    Debug-only classes and resources in visual studio - is it possible?

    Right-click on the project in the Solution Explorer in Visual Studio and choose "Open Folder in File Explorer" and then open up and edit the .csproj file in a text editor such as Notepad. I am afraid Visual Studio provides no GUI that lets you do this though.