小编Sim*_*her的帖子

为什么不能在C#中删除未使用的引用

是否有任何理由使Visual Studio无法在C#和C++项目中删除未使用的引用(到项目和程序集),而从Visual Basic项目可以这样做(参见此处)?

我知道你可以使用像Resharper这样的其他工具来实现它,我只是想知道在C#和C++项目中是否有任何技术原因无法做到这一点?或者微软只是选择它这样工作.这似乎是一个非常有用的功能.

.net c# c++ reference visual-studio-2010

7
推荐指数
1
解决办法
1666
查看次数

如何强制部署项目在安装新版本期间更新文件?

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.

我希望我的安装程序自动删除已安装应用程序的所有旧版本。为此,我遵循以下程序(也在此描述

  1. 将RemovePreviousVersions 设置为True
  2. Set DetectNewerInstalledVersion to True
  3. Increment the Version of the installer
  4. Choose Yes to change the ProductCode

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 …

c# deployment windows-installer visual-studio-2008

5
推荐指数
2
解决办法
1万
查看次数

如何以编程方式在vs 2008中创建新的空白解决方案?

基于设计的方法是:新项目 - >其他项目类型 - > Visual Studio解决方案 - >空白解决方案

我必须在C#中以编程方式创建一个空白解决方案,并在此解决方案中添加新的空项目和文件.我在网上使用DTE发现了很多代码,但他们在现有的解决方案资源管理器中添加了我的空项目,所以请给我一些参考代码.

c# add-in visual-studio-2008 envdte

3
推荐指数
1
解决办法
2068
查看次数