I have a Deployment Project for my VS2008 C# application. When installing a new version of my application I want to make sure that files are updated with the files contained in the installer.
我希望我的安装程序自动删除已安装应用程序的所有旧版本。为此,我遵循以下程序(也在此描述):
For the assemblies I make sure the AssemblyVersion is set to a higher version:
[assembly: AssemblyVersion("1.0.*")]
Run Code Online (Sandbox Code Playgroud)
Everything is working as intended except for my configuration …
基于设计的方法是:新项目 - >其他项目类型 - > Visual Studio解决方案 - >空白解决方案
我必须在C#中以编程方式创建一个空白解决方案,并在此解决方案中添加新的空项目和文件.我在网上使用DTE发现了很多代码,但他们在现有的解决方案资源管理器中添加了我的空项目,所以请给我一些参考代码.