VS 2012 .user文件导致不必要的生成 [英] VS 2012 .user file causes unnecessary builds

查看:122
本文介绍了VS 2012 .user文件导致不必要的生成的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

有很多关于Visual Studio构建项目的帖子,如果不需要的话.但是,似乎没有人涵盖这个特定问题.

There are a number of post in relation to Visual Studio building projects when not necessary. However, none seem to cover this particular issue.

我正在运行Visual Studio 2012 Professional Update 4.

I'm running Visual Studio 2012 Professional Update 4.

在我的解决方案中,我有一个单元测试项目,该项目具有对BizTalk Transforms项目的项目引用.反过来,该项目具有对BizTalk模式项目的项目引用.

In my solution, I have a unit test project that has a project reference to a BizTalk Transforms project. This in-turn has a project reference to a BizTalk schemas project.

每次选择运行单元测试时,即使没有进行任何更改,整个解决方案都会构建.

Every time I choose to run a unit test, the whole solution is built, even though no changes have been made.

在构建窗口中显示的第一行如下:

The first line displayed in the build window is as follows:

输入文件 'C:\ Workspaces \ rbowman \ Branches \ Current-branchRB \ WareHouse \ FFF.Enterprise.WareHouse.Schemas \ FFF.Enterprise.WareHouse.Schemas.btproj.user' 在输出文件后被修改 'C:\ Workspaces \ rbowman \ Branches \ Current-branchRB \ WareHouse \ FFF.Enterprise.WareHouse.Schemas \ bin \ Release \ FFF.Enterprise.WareHouse.Schemas.pdb'.

Input file 'C:\Workspaces\rbowman\Branches\Current-branchRB\WareHouse\FFF.Enterprise.WareHouse.Schemas\FFF.Enterprise.WareHouse.Schemas.btproj.user' is modified after output file 'C:\Workspaces\rbowman\Branches\Current-branchRB\WareHouse\FFF.Enterprise.WareHouse.Schemas\bin\Release\FFF.Enterprise.WareHouse.Schemas.pdb'.

注意:似乎是导致重新生成的 .user 文件. 有谁知道如何防止这种情况?奇怪,但我似乎只是遇到BizTalk proj文件的问题.我在多个解决方案中都看到这种现象,但是问题文件始终被标识为btproj.user.

Note: it seems to be the .user file that's causing the rebuild. Does anyone know how to prevent this? Strange but I only seem to be getting the problem with BizTalk proj files. I am seeing this behavior across multiple solutions but the problem file is always identified as a btproj.user.

此截屏演示了该问题:截屏链接

This screencast illustrates the problem: screencast link

推荐答案

如果您刚刚打开该解决方案,即使自上次构建以来没有任何更改,如果单击全部运行",它将按照中的说明进行操作.测试资源管理器进行构建.

If you have just opened the solution, even if nothing has changed since the last time you built, if you click Run All, it will as per the description in Test Explorer do a build.

这篇关于VS 2012 .user文件导致不必要的生成的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆