I wrote a project in WPF and published it with Visual Studio's Setup project. I want to send a notification screen to the user when I release a new version. When the user confirms on the update screen, the current version of the program will be downloaded in the background. Then the installation screen will open when the download is complete. How can I do these?
Related
I installed Visual Studio 2019 GA Released version today.
I installed this template https://github.com/Dotnet-Boxed/Templates via dotnet new command line
I then can use the dotnet new to create a project from command line.
However, the installed template does not show in this windows in Visual Studio 2019.
What the point of putting the link to install a new template from CLI but not listing new installed template in the UI?
Is this a bug or actually a missing feature?
https://devblogs.microsoft.com/dotnet/net-cli-templates-in-visual-studio/
in this post you can see how to enable .net core cli project templates in VS2019
Starting in Visual Studio 16.8 Preview 2 we’ve enabled a preview feature that you can turn on that enables all templates that are installed via CLI to now show as options in Visual Studio as well. To enable this option visit the Preview Features options in the Tools…Options menu and look for the “Show all .NET Core templates in the New Project dialog” (we’re awesome at naming) checkbox and check it:
After enabling you need to restart the Visual Studio instance to get this capability. After restarting and choosing to create a new project you’ll see some slight differences in the experience.
This is a missing feature that is still being actively planned and developed. Look for it sometime in the .NET Core 3 timeframe.
Hello, I need to publish my application with .NET Framework 4.0 (for windows XP support) but when trying to add it to the prerequisites it is missing. What can i do?
i used the old, free "Bootstrap Manifest Generator" tool, which is a bit hard to find nowadays. My steps were as follows:
I downloaded the .NET Framework 4.0 redistributable package: https://www.microsoft.com/en-za/download/confirmation.aspx?id=17718
To get the package to appear in the "Prerequisites" dialog box, i downloaded the "Bootstrap Manifest Generator" tool from SoftPedia (http://www.softpedia.com/get/Programming/Other-Programming-Files/Bootstrapper-Manifest-Generator.shtml). I scanned my download with McAfee and it was safe.
I installed the package and ran it. The series of images below illustrate the options that i selected on the tool:
Select "New Project" and then the "Package Manifest" option
- Fill-in the Project Name and Project Code, and then click the first icon above the white panel labeled "Package"
- Browse to the redistributable package
Enter the "Display Name" and then click the second icon above the white panel. The output folder will be highlighted in blue.
Move the containing folder (navigate one level up to copy the "DotNETFX40" folder) to the location shown below (Note, i'm using VS2017 Community on Windows 10):
In my WPF application, in the "Prerequisites" dialog, i now see the DotNETFX40 folder, as highlighted below.
Now when i publish the application, the DotNETFX40 folder is published as well:
I think you will have to use Visual Studio 2015 to be able to select .NET Framework 4.0 as a prerequisite.
The official support for .NET Framework 4 has ended: https://blogs.msdn.microsoft.com/dotnet/2015/12/09/support-ending-for-the-net-framework-4-4-5-and-4-5-1/
The WPF Performance Suite is described here:
http://msdn.microsoft.com/en-us/library/aa969767.aspx#installing_the_wpf_performance_suite
-> how can I install it on Windows 8?
(the Windows 7 SDK can't be installed and the Windows 8 SDK contains Performance tools such as GPUView but not the WPF profilers "Perforator" and "Visual Profiler".
I googled several hours for it but didn't find anything.
Ok, I have it running under Windows 8, but afaik only for framework 4.
Download the tools (link borrowed from Athari above)
Install and it test. Select visual profiler and attach to a process. If it doesn't appear to work, download this patch from MS.
After installing the patch I now have it working again. This is on Windows 8 pro running on a Dell XPS 17 i7 based machine.
it comes as a pack of Windows Performance Toolkit (WPT) v5 for Windows 8
http://social.msdn.microsoft.com/Forums/en-US/wptkv5/thread/090ed47a-f253-4c5a-8dc8-a7923e839815
here is the download
http://www.microsoft.com/en-us/download/details.aspx?id=30652
I managed to get everything downloaded and working under Windows 10 with a .NET 4.5 WPF app.
Follow instructions from Microsoft at Where to Download WPF Performance Suite? (Perforator, Visual Profiler). You need to install both the app, and its timezone patch.
You must run the WPF profile app before you run the target app.
Try running the target app as Administrator. It needs elevated privileges, or else it will not appear in the Select Process dialog.
If you cannot run the target app as Administrator, then you can still use
Actions..Launch Process to launch it.
Visual Studio 2015 comes with "Timeline", which by my estimation roughly provides the same features as Visual profiler. It can profile WPF on .net4+, including 4.5, 4.6.
It can be started by
To profile a WPF application in Visual Studio 2015 CTP 5, open the Performance and Diagnostics hub from the Debug -> Start Diagnostic Tools Without Debugging (ALT+F2) menu. Select the Application Timeline tool and click Start (You can also run the CPU Usage tool alongside the Application Timeline tool).
(Source: https://blogs.msdn.microsoft.com/wpf/2015/01/16/new-ui-performance-analysis-tool-for-wpf-applications/)
When deploying my Silverlight app, everything seems to be working until the screen goes black (just before the app starts loading) and Visual Studio gets to the "Launching UI Task" part of the build. Visual Studio is then unresponsive for about 60-90 seconds, during which time the screen remains black.
Finally, Visual Studio will become responsive again, the initial splash screen will load and the app will launch. However, it will hang again when I hit the "stop" button, this time for longer. It does this on a deploy to a device and to the emulator and it only does this for this one app (other projects deploy just fine).
It also does not hang when I do a non-deploy build. Cleaning and rebuilding the solution has no effect.
I'm using Visual Studio 2010 SP1 (Version 10.0.40219.1 SP1Rel). If you think I'm missing any helpful information, please let me know.
I had this problem as well. I remembered from long ago I found a post that stated if there was an invalid breakpoint, startup time could take forever. I deleted the .SUO file (which stores the breakpoints) and everything was back in order.
I have developed a WPF application and I need to try it on other computers.
1- I change my project properties to build in release mode and rebuilt project. However, /bin/release folder is empty and it still generates /bin/debug folder.
2- I selected publish and install it on other computers. Funny thing is, the program is not running if that computer does not have Visual C# (.Net Framework, Sql server etc. does not cause a problem)
3- I added a installer and add project output(release) to this application. It says /bin/release/abc.exe couldn't be find.. Changed it to project output(debug) and it builds fine. However, this setup is not even working on my computer..
So my question is simple... How can I publish WPF application in release mode and how can I run them on other computers without installing Visual C#. Thank you in advance
Check properties of your project, and set output folder for Release configuration.
You need .NET 4 framework installed on PC, to run (simple) WPF application.
Should work, when you set your output folder, see 1.