I have a property that is filled by a task with "True" or "False" string values.
I want to convert only "True" values to "+" and I came up with:
$(MyProperty.Replace('True', '+').Replace('False','')))
I wonder if there is a better way?
Thanks!
I have a property that is filled by a task with "True" or "False" string values.
I want to convert only "True" values to "+" and I came up with:
$(MyProperty.Replace('True', '+').Replace('False','')))
I wonder if there is a better way?
Thanks!
Hi
I am using Visual studio 2013 with NuGet. As a part of project I want to create NuGet package which should be copy/publish to network shared drive. I am publishing both regular package and symbol package. But when I try to debug this assembly it is not loading symbol package for debug purpose. Am I missing any thing.
Following steps I am performing
1) Build Assembly "MyAssembly.dll" using VS2013
2) On Build I am using
"NuGet Pack $(ProjectDir)$(ProjectFileName) -Prop Configuration=Release -Symbols -OutputDirectory $(SolutionDir)OutputPackages"
to pack this assembly as part of package
3) Now I want to publish both these packages to Network share drive. When I use "NuGet Push " command it is giving error.
So is it possible "NuGet Push" is not designed to push on network shared drive ???
So I am using Xcopy to copy these packages to copy to network shared drive
xcopy /D /C /R /Y $(SolutionDir)OutputPackages\MyAssembly.1.0.0.0.nupkg\\SharedPC1\NuGet\lib
xcopy /D /C /R /Y $(SolutionDir)OutputPackages\MyAssembly.1.0.0.0.symbols.nupkg\\SharedPC1NuGet\pdb\public\lib\
4) Now when I install "MyAssembly.1.0.0.0.nupkg" in another package I was expecting to load symbols during debug.
So am I missing any thing
thanks
Drew
Senario:
1. Install VS2005 on windows 2003 X64 host.
2. Install VS 2005 SP1.
3. Apply windows security patch KB2538218.
4. Build this DotNet X64 a.dll (C++ lagnuage).
5. Deploy a.dll to customer environment like windows 7 X64.
6. Run C# application (depend on a.dll) it will shows error:
Unable to load DLL 'a.dll': The application has failed to start because its side-by-side configuration is incorrect. Please see the application event log or use the command-line sxstrace.exe tool for more detail.
butactually, I can see a.dll in system by gacutil. The problem is that when I removed KB2538218 and then build a.dll again, the issue gone. could anyone help me on this?
Error1
The build stopped unexpectedly because of an internal failure.
Microsoft.Build.Exceptions.BuildAbortedException: Build was canceled. Failed to successfully launch or connect to a childMSBuild.exe process. Verify that the MSBuild.exe "C:\Windows\Microsoft.NET\Framework\v4.0.30319\MSBuild.exe" launches successfully, and that it is loading the same microsoft.build.dll that the launching process loaded. If the location seems
incorrect, try specifying the correct location in the BuildParameters object, or with the MSBUILD_EXE_PATH environment variable.
at Microsoft.Build.BackEnd.NodeProviderOutOfProc.CreateNode(Int32 nodeId, INodePacketFactory factory, NodeConfiguration configuration)
at Microsoft.Build.BackEnd.NodeManager.AttemptCreateNode(INodeProvider nodeProvider, NodeConfiguration nodeConfiguration)
at Microsoft.Build.BackEnd.NodeManager.CreateNode(NodeConfiguration configuration, NodeAffinity nodeAffinity)
at Microsoft.Build.Execution.BuildManager.PerformSchedulingActions(IEnumerable`1 responses)
at Microsoft.Build.Execution.BuildManager.HandleNewRequest(Int32 node, BuildRequestBlocker blocker)
at Microsoft.Build.Execution.BuildManager.IssueRequestToScheduler(BuildSubmission submission, Boolean allowMainThreadBuild, BuildRequestBlocker blocker)c:\users\TestUser\documents\visual studio 2012\Projects\WindowsFormsApplication1\WindowsFormsApplication1\WindowsFormsApplication1.csprojWindowsFormsApplication1
Please help me on this....
Thanks in advance.
Hi,
I am facing issues while counting code analysis warnings in Log file created using devenv command line execution. Log created using DevEnv command line havesome missing lines and hence the warnings, thus it is giving incorrect count of warnings.
Please suggest
i used vs 2012, installed wdk8.0 on windows7
I want to build the driver for win8 x64.
problem getting at build driver , following error :
C:\Program Files\MSBuild\Microsoft.Cpp\v4.0\V110\Microsoft.Cpp.Platform.targets(44,5): error MSB8020: The builds tools for WindowsKernelModeDriver8.0 (Platform Toolset = 'WindowsKernelModeDriver8.0') cannot be found. To build using the WindowsKernelModeDriver8.0 build tools, either click the Project menu or right-click the solution, and then select "Update VC++ Projects...". Install WindowsKernelModeDriver8.0 to build using the WindowsKernelModeDriver8.0 build toolsHi ,
If i run my build controller as an interactive process and also associate my automation solution with the build , during the build my coded tests are run in my build controller machine itself.
Now if i install a build agent in an another machine and associate the agent with the previous build controller, now if i queue my build , will my coded ui tests run in the agent machine
Hi,
We are currently using TFS2013 and MSBuild for our build system. We recently migrated from TFS2012 where we had multiple wix projects using wix 3.7 and had no issues in building out the solution(s) and associated msi's. After we migrated to TFS2013, we are having an issue building the wix projects and so far, nothing we have done (as in change wix versions to 3.8, and the non-release 3.9. and 4.0, placed static references to libraries in the .wixproj) has changed the result. Below is the error we are receiving (using wix 3.9, but same error exists with 3.7 -->)
C:\Program Files (x86)\MSBuild\Microsoft\WiX\v3.x\wix2010.targets (1279): The "CreateProjectReferenceDefineConstants" task could not be loaded from the assembly C:\Program Files (x86)\WiX Toolset v3.9\bin\\WixTasks.dll. Could not load file or assembly 'Microsoft.Build.Utilities, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' or one of its dependencies. The system cannot find the file specified. Confirm that the <UsingTask> declaration is correct, that the assembly and all its dependencies are available, and that the task contains a public class that implements Microsoft.Build.Framework.ITask.
Thanks,
Dean
hello every,
I'm building my project file but fail with error MSB4095.
below is the target results in the error.
<Target Name="Test"><Message Text="filename: @ (Schema->'%(filename)')"/></Target>
Please provide the solution.
Thanks!
hello,
I'm think of a question, how to use MSBuild instead the command line.
a simple sample:
using System; class CSharpTest { static void Main() { Console.WriteLine("Hello world"); } }
We can use the command line
csc /out:hello_cs.exe hello.cs
to build. Now i want to use MSBuild to build the project. How to write a simple MSBuild project file? I do't need the project file that generated by VS.
Thanks.
I have created a build in TFS 2013, using VS 2013. My solution builds correctly in Visual Studio, and I can open the solution from the drop folder on the build server and compile it as well.
The problem is that a triggered build will fail randomly, maybe around 60% of the time, with missing reference errors. The missing references are only my own projects that are built with the solution, not packages or Microsoft dlls. The number of actual missing reference errors varies as well, leading me to believe that the problem is related to file access handles. The build fails with the standard "MSBuild error 1". Here is an example error:
Helpers\SiteHelpers.cs (11): The type or namespace name 'ShoppingCart' does not exist in the namespace 'xxxxx.xxxxxxxxx.xxxxxxx' (are you missing an assembly reference?)
As I said, the project builds fine in Visual Studio, but I checked dependencies on the solution anyway, and everything appears to be correct.
It may be worth noting that I am using TFS's Git implementation, so my build process file is currently GitTemplate.12.xaml. This file works fine for several other similar solutions I am working on.
Does anyone know how to add a custom tool to an SQL Server project in Visual Studio. I have a tool that is analogous to MSDataSetGenerator, taking a schema.xsd file as input and generating several SQL files as output. I would like to put this file into my SQL Server project, so when I modify the XSD file, it will automatically generate the SQL files (which I can then deploy to the database). However, for some reason, the option for a Custom Tool doesn't appear on any of the objects in an SQL Server project. This appears to work in my VS2012 projects.
Steps to Reproduce;
1.) Create a VS 2013 SQL Project.
2.) Add a database.xsd item to the project.
3.) Look at the properties window: no option for Custom Tool.
Any ideas how to make this work in VS2013?
Greetings and Hi there, I am compiling a solution which is giving intermittent strange errors. I am using devenv.exe to build an existing solution which gives the following error :
C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\Platforms\x64\Microsoft.Cpp.x64.Targets(152,5): error MSB6001: Invalid command line switch for "CL.exe". Item has already been added. Key in dictionary: 'PATH' Key being added: 'Path'
I have read on this issue and I am looking to see if there is a work around, fix or a patch to get passed this in visual studio 2010. Many thanks in advance
Omon
Error1 Unable to find manifest signing certificate in the certificate store.Customs
Please help solve the problem------ Build started: Project: Venicom.CustomerPortal.DataContracts, Configuration: Debug Any CPU ------
Venicom.CustomerPortal.DataContracts -> C:\Users\liferaydev\Desktop\code\Venicom.CustomerPortal.DataContracts\bin\Debug\Venicom.CustomerPortal.DataContracts.dll
solution: C:\Users\liferaydev\Desktop\code\
svcutil: "C:\Program Files (x86)\Microsoft SDKs\Windows\v7.0A\\bin\NETFX 4.0 Tools\svcutil.exe"
The system cannot find the path specified.
The system cannot find the path specified.
C:\Windows\Microsoft.NET\Framework\v4.0.30319\Microsoft.Common.targets(4291,5): error MSB3073: The command "C:\Users\liferaydev\Desktop\code\\Scripts\ExportSchema.bat C:\Users\liferaydev\Desktop\code\ "C:\Program Files (x86)\Microsoft SDKs\Windows\v7.0A\\bin\NETFX
4.0 Tools\svcutil.exe"" exited with code 1.
i am not getting this error...
plz help how to resolve this error. so that project solution should be built successfully..
Hi everyone,
I have a custom .props file that I'm importing at the top of my .csproj file. Its purpose is to define a new item group with default metadata; specifically, I want to set theInProject metadata to False, which prevents Visual Studio from showing included files in Solution Explorer.
My .props file looks something like this:
<?xml version="1.0" encoding="utf-8"?><Project ToolsVersion="4.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003"><ItemDefinitionGroup><MyCustomItem><InProject>False</InProject></MyCustomItem></ItemDefinitionGroup><Target Name="_Dummy" /></Project>
Unforutnately, when I add MyCustomItem items in my C# project, Visual Studio seems to ignore the defaultInProject metadata. The files in this item group show up in Solution Explorer just likeContent items.
For example, the following project shows File1.txt and File2.txt as project items in Solution Explorer:
<?xml version="1.0" encoding="utf-8"?><Project ToolsVersion="12.0" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003"> ...<ItemGroup><MyCustomItem Include="..\File1.txt" /><MyCustomItem Include="..\File2.txt" /></ItemGroup> ... </Project>
However, if I explicitly add InProject metadata, then File1.txt and File2.txt are not shown as project items:
<?xml version="1.0" encoding="utf-8"?><Project ToolsVersion="12.0" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003"> ...<ItemGroup><MyCustomItem Include="..\File1.txt"><InProject>False</InProject></MyCustomItem><MyCustomItem Include="..\File2.txt"><InProject>False</InProject></MyCustomItem></ItemGroup> ... </Project>
Is this a bug? Or is this simply not a supported scenario?
If it's the latter, then please consider this to be a feature request!
Thanks,
Dave
When I use the VS2010 IDE to build my project it builds without any problem.
If I use the devenv by command line to build the exact same project as:
C:\Program Files (x86)\Microsoft Visual Studio 10.0\VC>devenv.com "C:\Source\AquisTermis\trunk\AQUIS2\AQUIS2.sln" /Rebuild "Release|Any CPU" /out "c:\aquis.log"
.. then I get the following error:
[error ] : 8>C:\Source\AquisTermis\branch\AquisTermis_v6.0\_7TGUI\Properties\Resources.cs-CZ.resx(544,5): error MSB3103: Invalid Resx file.Parameter is not valid. Line 544, position 5.
The project includes 10 languages.
In the .csproj file the 10 languages are included, see below:
...
<ItemGroup>The resources.cs-CZ is the 9.th language in the above list.
The specified position in the resource.cs-CZ file is shown below (line 544 is the line with </data>)
<data name="birdseye" type="System.Resources.ResXFileRef, System.Windows.Forms">
<value>..\Resources\birdseye.ico;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
</data>
If I re-arrange the order of the languages and places the cs-CZ language as one of the first 8 languages, then it still reports error on the 9.th language, and the cs-CZ is thus accepted.
I've tried to just include 8 languages, then the error just occurs later when the csproj file references various forms.
It therefore looks like it is a limitation/resource issue. Each language resource.xx-XX.resx file has about 5000 lines.
The "PC" is a virtual WIN7, with 4GB ram. Windows fully updated, VS2010 SP1.
I'm stuck.
Has anyone else observed similar limitations or can anyone advise how I can get on with my command line build?
when i'm trying to run the project i'm getting build error. i can not figure it out what's when wrong.
Error 1 The command "if not exist "C:\Users\Gayan\Documents\Visual Studio 2013\Projects\SmartStore\Presentation\SmartStore.Web\bin\x86" md "C:\Users\Gayan\Documents\Visual Studio 2013\Projects\SmartStore\Presentation\SmartStore.Web\bin\x86" xcopy /s /y "C:\Users\Gayan\Documents\Visual Studio 2013\Projects\SmartStore\..\lib\sqlce\x86\*.*" "C:\Users\Gayan\Documents\Visual Studio 2013\Projects\SmartStore\Presentation\SmartStore.Web\bin\x86" xcopy /s /y "C:\Users\Gayan\Documents\Visual Studio 2013\Projects\SmartStore\..\lib\ClearScript.V8\Native\x86\*.*" "C:\Users\Gayan\Documents\Visual Studio 2013\Projects\SmartStore\Presentation\SmartStore.Web\bin\x86" if not exist "C:\Users\Gayan\Documents\Visual Studio 2013\Projects\SmartStore\Presentation\SmartStore.Web\bin\amd64" md "C:\Users\Gayan\Documents\Visual Studio 2013\Projects\SmartStore\Presentation\SmartStore.Web\bin\amd64" xcopy /s /y "C:\Users\Gayan\Documents\Visual Studio 2013\Projects\SmartStore\..\lib\sqlce\amd64\*.*" "C:\Users\Gayan\Documents\Visual Studio 2013\Projects\SmartStore\Presentation\SmartStore.Web\bin\amd64" xcopy /s /y "C:\Users\Gayan\Documents\Visual Studio 2013\Projects\SmartStore\..\lib\ClearScript.V8\Native\amd64\*.*" "C:\Users\Gayan\Documents\Visual Studio 2013\Projects\SmartStore\Presentation\SmartStore.Web\bin\amd64" if not exist "C:\Users\Gayan\Documents\Visual Studio 2013\Projects\SmartStore\Presentation\SmartStore.Web\bin\ClearScript.V8" md "C:\Users\Gayan\Documents\Visual Studio 2013\Projects\SmartStore\Presentation\SmartStore.Web\bin\ClearScript.V8" xcopy /s /y "C:\Users\Gayan\Documents\Visual Studio 2013\Projects\SmartStore\..\lib\ClearScript.V8\lib\*.*" "C:\Users\Gayan\Documents\Visual Studio 2013\Projects\SmartStore\Presentation\SmartStore.Web\bin\ClearScript.V8"" exited with code 4. SmartStore.WebIn my C++ source tree, I have a root directory with several *.vcxproj files used to build different subsets of projects in subdirectories: all.vcxproj, libraries.vcxproj, etc.
These root projects don't build anything, but they contain project references to those other projects.
With VS2013, I get the warning:
C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\V120\Microsoft.CppBuild.targets(381,5): warning MSB8028: The intermediate directory (x64\Debug\) contains files shared from another project (all.vcxproj). This can lead to incorrect clean and rebuild behavior.
How can I avoid this warning? Perhaps there is a way to define a *.vcxproj file that would include C++ project references yet not be based on CppBuild? If so, could you please include an example?
Thanks.
I am trying to publish a couple of web projects in a solution during msbuild to a remote web server.
I have my build server, my appplication server and my laptop.
The build server and the application server are both Windows Servers 2008 R2 with IIS 7.
The build server and the laptop both have Visual Studio 2013 installed.
All computers are in the same domain.
I can publish from the build server to the build server using MSBuild with the following arguments:
/p:DeployOnBuild=True;PublishProfile=Test /p:IsAutoBuild=True /p:AllowUntrustedCertificate=True /p:MSDeployPublishMethod=InProc /p:VisualStudioVersion=12.0
I can publish from the build server and from my laptop from inside Visual Studio both to the build and the application server.
However i cannot publish from the build server to the application server using MSBuild command line.
I tried these arguments:
/p:DeployOnBuild=True;PublishProfile=Production /p:IsAutoBuild=True /p:AllowUntrustedCertificate=True /p:VisualStudioVersion=12.0
/p:DeployOnBuild=True;PublishProfile=Production /p:IsAutoBuild=True /p:AllowUntrustedCertificate=True /p:VisualStudioVersion=12.0 /p:MSDeployPublishMethod=WMSVC
/p:DeployOnBuild=True;PublishProfile=Production /p:IsAutoBuild=True /p:AllowUntrustedCertificate=True /p:VisualStudioVersion=12.0 /p:username=MYDOMAIN\TheUser /p:password=xxx /p:MSDeployPublishMethod=WMSVC
/p:DeployOnBuild=True;PublishProfile=Production /p:IsAutoBuild=True /p:AllowUntrustedCertificate=True /p:VisualStudioVersion=12.0 /p:username=MYDOMAIN\TheUser /p:password=xxx /p:AuthType=NTLM /p:MSDeployPublishMethod=WMSVC
/p:DeployOnBuild=True;PublishProfile=Production /p:IsAutoBuild=True /p:AllowUntrustedCertificate=True /p:VisualStudioVersion=12.0 /p:username="" /p:AuthType=NTLM /p:MSDeployPublishMethod=WMSVC
I also tried adding the user in the IIS Manager Permissions on the application server which did not work either.
The Management Service on the application server is configured to accept Windows and IIS Authentication.