光说有毛用


程序猿的小本本

last update:

VS编译出错信息: {.title.pre.fs1}

“The project file ” has been renamed or is no longer in the solution” {.title.pre.fs1}

看一下 .sln 和 .vcxproj 文件中的 GUID 是否匹配。

可能原因1:
出这个提示,一般是 .vcxproj 中 中的 GUID 和 .sln 中的 Project GUID 不一致了。(Project Depedencies)
 
可能原因2:
也有可能是 .sln 引用了 A.vcxproj,而 A.vcxproj 依赖了 B.vcxproj,而 B.vcxproj 未被加入到 .sln 中。查看 A.vcxproj 中的 ,看看引用了哪个未加入 .sln 的工程,加一下就好。
 
说明:
打开.sln工程文件,检查
Project(“…
 EndProject
节和每个*.vcxproj工程里的GUID匹配不,不匹配改正,
如果有重复的,利用VS生成新的,替换掉。
 

添加favoriteicon 在wp-content/themes/YOURTHEM/header.php 中添加下面语句,然后把favicon.ico文件放置到网站根目录 <link rel="shortcut icon" type="image/x-icon" href="favicon.ico" />   添加统计代码 在wp-content/themes/YOURTHEM/footer.php 中添加对应的网站js代码即可   在wp-content/themes/YOURTHEM/footer.php 允许友链操作功能 add_filter('pre_option_link_manager_enabled','__return_true');    网站居中对齐 在wp-content/themes/YOURTHEM/style.css 最后添加一行 #page {margin:0 auto;}    

Project not selected to build for this solution configuration.

{.postTitle}

Project not selected to build for this solution configuration.

 

When you upgrade your older solution files to latest version of visual studio 2010 or 2012 you may get compilation output as “Project not selected to build for this solution configuration”, even though with the earlier version of visual studio these projects were building fine. In order to build required project you just have to modify the solution configuration. Steps below mention how to do it.

<ol>
  <li>
    Launch the Solution properties, by right clicking solution and select Properties.
  </li>
  <li>
    On solution properties dialog box, from configuration properties group select Configuration.
  </li>
  <li>
    For the projects which you are getting the error as above select the check box under Build column if not checked.
  </li>
  <li>
    Save configuration by pressing OK.
  </li>
</ol>

<p>
  Now your project being skipped should get built, while building the solution.
</p>

 

 

visual studio 2012 can not build

not selected to build for this solution configuration

Project not selected to build for this solution

Project not selected to build for this

Project not selected to build for

Project not selected to build

build for this solution configuration

vs2012 can not build

vs 命令行编译

简单用法 进入命令行vs Command Prompt,参考以下格式

devenv xxxx.vcxproj /Build "Release|Win32"
devenv xxxx.sln /Build "Debug|x64"
devenv xxxx.vcxproj /Clean "Release|Win32"
devenv xxxx.sln /Clean "Debug|x64"

详细用法可以参考VS帮助