I\'ve used the Setup Project in Visual Studio for Console apps with no problems, however, until now, I\'ve always ran any WPF apps I\'ve created in Visual Studio. This is my
I removed the scripts and hard coded them into the MainWindow.xaml.cs file like so:
private static string checkAppsScript = @"$appList = @('*BingNews*','*BingWeather*','*OneNote*','*WindowsAlarms*',
'*Recorder*', '*Maps*','*Camera*', '*Microsoft.People*',
'*xboxapp*', 'ZuneMusic*','*Messaging*', '*Builder*',
'*BubbleWitch*', '*Minecraft*', '*Spotify*',
'*Empires*', '*StickyNotes*', '*Skype*', '*SolitaireCollection*')
ForEach($app in $appList)
{
Get-AppxPackage | Select Name | Where-Object {$_.Name -like $app}
}";
I removed the images and re-added them using "Add Existing Item." I had originally used "Add Item." I placed all images in a res folder (I had two folders, which was pointless). The executable now works.