projects-and-solutions

How to make msbuild fail when a target fails in a VS solution?

吃可爱长大的小学妹 提交于 2019-12-01 17:02:49
I'm using msbuild on the command line to build a VS2012 solution containing a C++ project. The project has a target that runs after the build: <Target Name="RunTargetAfterBuild" AfterTargets="Build"> <Error Text="I am a failing target" /> </Target> I want msbuild to return an error when building, however somewhere in the process of building, the error gets lost and msbuild reports 'Build succeeded'. Consequently the ERRORLEVEL is still set to 0 so it's pretty hard to detect if something went wrong during automated builds. How do I make msbuild propagate this error all the way to the top level

Resource editor not available in Visual Studio 2008

雨燕双飞 提交于 2019-12-01 13:23:29
When I right-click on a resource file in Visual Studio 2008, I get the following message: There is no editor available for 'D:\MyPath\MyProject\Resources.de.resx'. Make sure the application for the file type (.resx) is installed. Any idea on how to solve this issue? By now, I am stuck with opening the resource files as XML text. I am working with Visual Studio 2008 Professional Edition. Update: Unfortunately (for me), uninstalling and installing again Visual Studio 2008 Professional Edition and its service pack did not solve the problem. Incidentally, I cannot see any C# Project Properties

Converting Visual Studio 2008 project to 2003

社会主义新天地 提交于 2019-12-01 10:48:44
Very blunt and to the point, but does anyone know how to convert a visual studio 2008 project to visual studio 2003, I'm meant to be delivering some stuff to a client and they only work in 2003. Sorry someone makes a very good point, what language, C# is the answer. I've done a bunch of searches on Google and tend to only come up with 2003->2008 and not visa versa, I would very much appreciate any help. It cannot be done in the general case, as the VS2008 project may use .NET 3.5 features that don't exist in .NET 1.1 used in VS2003. If you only have .NET 1.1 features in your VS2008 project,

Resource editor not available in Visual Studio 2008

巧了我就是萌 提交于 2019-12-01 10:20:26
问题 When I right-click on a resource file in Visual Studio 2008, I get the following message: There is no editor available for 'D:\MyPath\MyProject\Resources.de.resx'. Make sure the application for the file type (.resx) is installed. Any idea on how to solve this issue? By now, I am stuck with opening the resource files as XML text. I am working with Visual Studio 2008 Professional Edition. Update: Unfortunately (for me), uninstalling and installing again Visual Studio 2008 Professional Edition

Converting Visual Studio 2008 project to 2003

南笙酒味 提交于 2019-12-01 09:28:58
问题 Very blunt and to the point, but does anyone know how to convert a visual studio 2008 project to visual studio 2003, I'm meant to be delivering some stuff to a client and they only work in 2003. Sorry someone makes a very good point, what language, C# is the answer. I've done a bunch of searches on Google and tend to only come up with 2003->2008 and not visa versa, I would very much appreciate any help. 回答1: It cannot be done in the general case, as the VS2008 project may use .NET 3.5

Visual Studio 2012 says website project's project file is edited outside of environment

一个人想着一个人 提交于 2019-12-01 01:24:08
问题 After installing Visual Studio 2012 and opening/upgrading a Visual Studio 2010 solution from Team Foundation Server that contains two "website"-type projects I keep getting the message that "The project 'website' has been modified outside the environment" with the option to reload every time I add or remove a file to the "website" project. This is odd, because as far as I know this type of project does not have a project file and thus it is impossible to edit it, in addition, nobody is

Visual Studio solutions - how to ensure project properties are shared?

南笙酒味 提交于 2019-11-30 22:19:54
If you use Visual Studio 2008 and have many project files within solutions how do you keep them in sync? In other words, if you change a property in one project, how do you ensure that this property is automatically changed in other projects? Given that enough contributors are mystified about the notion of nested solutions, I'll just work from the assumption you meant "solution with multiple projects". You give them common settings by using a project property sheet. Start with View + Other Windows + Property Manager. Open one of the nodes, right-click a configuration and choose Add New. Choose

Single config file for solution

与世无争的帅哥 提交于 2019-11-30 18:50:34
Now I have seen this question before on SO in a variant ways, but surprisingly not in this form: I have a solution with multiple web services (projects) that need to talk to each other. After publishing each of these web services might end up on a different machine with a different database. To tell each web service where all other web services are, I want to maintain a single config file during development. I would like to expect that after publishing the config to be present in each published project. And I would like to expect the config file to be editable after publishing, so I can

Visual Studio solutions - how to ensure project properties are shared?

百般思念 提交于 2019-11-30 18:15:59
问题 If you use Visual Studio 2008 and have many project files within solutions how do you keep them in sync? In other words, if you change a property in one project, how do you ensure that this property is automatically changed in other projects? 回答1: Given that enough contributors are mystified about the notion of nested solutions, I'll just work from the assumption you meant "solution with multiple projects". You give them common settings by using a project property sheet. Start with View +

Is there any Visual Studio extension to “favorite” folders and files?

只谈情不闲聊 提交于 2019-11-30 12:59:51
问题 I'm working on a middle-sized project that contains several class libraries, database model and an ASP .NET MVC website project. However, even though there are less than 15 projects in the solution, I often find myself collapsing and expanding endless folders to find a certain class or view . While looking for class is mostly solved by Resharper type navigation feature, I often want to switch to a certain view in MVC project. I don't remember the file name and it wouldn't solve the problem