msbuild

Silverlight MSBuild Task - execute command line after Xap copied to ClientBin

瘦欲@ 提交于 2020-01-11 11:28:33
问题 I have a silverlight project arranged as follows: Examples Silverlight Bin Debug ExampleCode {Multiple Sub directories} Silverlight.Web Bin Debug ClientBin Silverlight.Web.xap The code under {Multiple Sub Directories} is included in the silverlight DLL and compiled, however I also want to include these files as "Content" in the xap file. Think about demo applications for .NET controls that show you a demo but also the C#/xaml code to achieve it. This is what I'm trying to do. I cannot select

bison.exe cannot find file m4sugar.m4 which is required by an MSBuild in VS2010

左心房为你撑大大i 提交于 2020-01-11 10:40:08
问题 I am trying to compile QGIS in Visual Studio. I used OSGeo4W to download the packages, added Flex.exe and Bison.exe to my environment path. Downloaded QGIS Release 2.0, and launched a CMake-GUI with the option "Visual Studio 10". Then I configured my paths using the GUI tool. Then I hit configure and generate, and it worked. I looked in my directory and there were Visual Studio Solution files available for me. Then I hit "Build All" and I got the following output in the "Output Window"

TFS Incremental build error - Unable to perform the get operation because the file already exists locally

主宰稳场 提交于 2020-01-11 09:25:27
问题 I'm trying to enable incremental build of my VS solution. In the GUI for xaml build process template, I set "Clean Workspace" to "None" and added /p:IncrementalBuild=True as an MSBuild argument. I then checked in changes to a file, but when I run my TFS build, I immediately get the following error: Unable to perform the get operation because the file already exists locally Exception Message: One or more errors occurred while performing a Get operation. (type GetException) Exception Stack

OpenCover MSBuild Integration - No results generated

时光毁灭记忆、已成空白 提交于 2020-01-11 09:21:51
问题 After getting OpenCover to work on my machine, the next step is getting it to work with the build server. I've been trying to integrate OpenCover with MSBuild on a Bamboo Build Server. I have modified Build.proj as follows to run OpenCover after building the solution: <Target Name="TestAndCodeCoverage" DependsOnTargets="Build" > <Message Text="Executing Unit Tests and running OpenCover to check code coverage..." /> <MakeDir Directories="Coverage" /> <Exec Command='"C:\Program Files (x86)

I can't build multiple configuration(s) of a project at the same time in Visual Studio, but I can with MSBuild

最后都变了- 提交于 2020-01-11 07:20:13
问题 I want to build two configurations at the same time of a project. Let's say that when I want to build the release version, but I want to build even the debug version (the opposite isn't true). Starting with Use a single Visual Studio solution to build both x86 and x64 at the same time? I've tried adding to the .csproj: <Target Name="AfterBuild"> <MSBuild Condition=" '$(Configuration)' == 'Release' " Projects="$(MSBuildProjectFile)" Properties="Configuration=Debug" RunEachTargetSeparately=

Remove empty directories using msbuild

旧时模样 提交于 2020-01-11 05:18:30
问题 How can I process a path recursively so that once the processing completes there are no empty directories under the path. For example, say we have C:\Dir1\Dir2\Dir3 and there are no files in any of these directories. The outcome should be the removal of all three directories. I would like to accomplish this without the use of custom tasks. 回答1: Something like this should work, didn't check the performance of counting thousands of files though just to get array length... <Project

Custom MSBuild Task: how to flush logging in VS2012 output window while task is still running?

半腔热情 提交于 2020-01-11 05:07:06
问题 I have a custom MSBuild task that takes some time to complete. It outputs progress using either Log.LogMessage() or BuildEngine.LogMessageEvent() (tried both). My problem is that all output doesn't appear in VS2012 Output window until the task is completed, making progress updates useless. I would like to have output appearing while the task is running, right away. I found various threads explaining to call frequently Application.DoEvents() , but that doesn't seem to solve the problem (maybe

The Dnx Runtime package needs to be installed. See output window for more details

∥☆過路亽.° 提交于 2020-01-10 17:29:18
问题 I'm using Visual Studio 2015 Enterprise Edition and created simple Asp.net5 application. When I try to debug I'm getting this error. The Dnx Runtime package needs to be installed. See output window for more details Here are my project settings: Solution DNX SDK Version : 1.0.0-beta5, Platform : .NET Core Architecture : x64 (Tried with x86 as well) Also followed the steps mentioned in this link but they didn't help. Tried reinstalling VS2015 as well, but no luck. Any idea what I'm missing? 回答1

Build on commit with subversion

妖精的绣舞 提交于 2020-01-10 09:21:30
问题 Simple question. I use Visual studio and I've just installed subversion, how can i force the project to be build with msbuild, and if successfully build commit it else warn the user. I would use TortoiseSVN or VisualSVN or AnkhSVN (whatever it's called) if they have the ability to force build on commit built-in (I know that this is not their usage, I know they are just used as just GUI for committing to SVN) I would like to know if any of these tools can be used to do this extra thing. To

How can I use a single Visual Studio solution to build both x86 and x64 at the same time?

妖精的绣舞 提交于 2020-01-09 12:18:10
问题 I've got an x86 Visual Studio solution with many project files in it. Some of the DLL files are designed to work as plug-ins to other applications on a user's system. We're expanding some of the DLL files to be able to support 64-bit applications. I'd like to set up the solution/projects so that just hitting "Build" will build both the x86 and x64 versions of those DLL files. The solution contains both C++ and C# projects. I realize that "Batch Build" is capable of building both, though it