Quantcast
Channel: MSBuild forum
Viewing all 2763 articles
Browse latest View live

Unable to compile VSIX project that is a part of my solution using amd64 MSBuild from VS2015

$
0
0

I have this VSIX project that installs a control onto the Visual Studio toolbox.  I can compile my solution with this project without any issues when using the MSBuild from my directory: C:\Program Files (x86)\MSBuild\14.0\Bin.  However when I try to use the MSBuild from the amd64 directory: C:\Program Files (x86)\MSBuild\14.0\Bin\amd64  the build fails. 

I am using the 64bit msbuild to build my 64bit application, however my VSIX project is configured for ANYCPU for the platform.  When using the 64bit msbuild I get this error on my build machine:

(VerifyTargetVersion target) ->
  D:\BuildSystem15\OutsideView\packages\Microsoft.VSSDK.BuildTools.15.5.100\tools\VSSDK\Microsoft.VsSDK.targets(86,5):
error MSB4062: The "CompareBuildTaskVersion" task could not be loaded from the assembly D:\BuildSystem15\OutsideView\packages\Microsoft.VSSDK.BuildTools.15.5.100\tools\VSSDK\Microsoft.VisualStudio.Sdk.BuildTasks.15.0.dll. Could not load file or assembly 'file:///D:\BuildSystem15\OutsideView\packages\Microsoft.VSSDK.BuildTools.15.5.100\tools\VSSDK\Microsof
t.VisualStudio.Sdk.BuildTasks.15.0.dll' or one of its dependencies. An attempt was made to load a program with an incor
rect format. Confirm that the <UsingTask> declaration is correct, that the assembly and all its dependencies are availa
ble, and that the task contains a public class that implements Microsoft.Build.Framework.ITask. [D:\BuildSystem15\Outsi
deView\Source\OVDotNetApiControl\OVDotNetApiControl\OVDotNetApiControl.csproj]

Any ideas why this same solution would compile in the 32bit msbuild and not the amd64 msbuild?


Mike


remote linux compiling-building with mpicc

$
0
0
Hi, I'm trying to compile-build linux remotely using mpicc wrapper but so far have found no way to successfully insert the wrapper in the command line, thank you in advance for any help!!

devenv.exe doesn't copy third part to output directory

$
0
0

Have a solution consisting of 2 projects:

Class Library A

  • Third part DLL (log4net, hibernate, newtonsoft and etc )

ASP.NET SOAP WEB Service 

  • Reference to Class Library A

after compile solution using devenv.com , there is no any of third part dll in  Web Service output directory.

Copy Local set to TRUE.

Everything was working fine in VS2005, but in VS2015 and VS2017 doesn't work 


Verbosity Settings skips custom targets

$
0
0

Hi,

I have a large solution with various mix C#/C++ projects. One of my C# projects include a custom build target before the 'CoreCompile'. I'm using the command line "msbuild.exe" for building my solution so it can be used under Jenkins. During a normal build , my custom target would be ignored. When I set the verbosity to diagnostic (i.e. /v:diagnostic) so I can debug this, it does run my custom target. Seems like a timing issue in MSBuild or something? I do not see this with smaller solutions that uses my custom build target. Any ideas?

Thanks

Using:

Microsoft (R) Build Engine version 15.3.409.57025 for .NET Framework

Visual Studio 2015 & 2017, Build Error when FIPS Enabled - "This implementation is not part of the Windows Platform FIPS validated cryptographic algorithms"

$
0
0

Hi MSDN Folks,

Our requirement is our app should support in machines where FIPS is Enabled. So we Enabled FIPS in the dev machine.

I Could not even able to build the UWP Blank Application targeting 16299  and getting build error stating This implementation is not part of the Windows Platform FIPS validated cryptographic algorithms."


 Enabling/Disabling FIPS in Windows

Use the Group Policy Editor (gpedit.msc), set the following option to "Enabled".

Note:

My VS2017 configuration is as such:

Microsoft Visual Studio Enterprise 2017 
Version 15.3.5
VisualStudio.15.Release/15.3.5+26730.16
Microsoft .NET Framework
Version 4.6.01038

Installed Version: Enterprise

Visual Basic 2017   00369-90250-45966-AA803
Microsoft Visual Basic 2017

Visual C# 2017   00369-90250-45966-AA803
Microsoft Visual C# 2017

Visual C++ 2017   00369-90250-45966-AA803
Microsoft Visual C++ 2017

Visual F# 4.1   00369-90250-45966-AA803
Microsoft Visual F# 4.1

Application Insights Tools for Visual Studio Package   8.8.00712.1
Application Insights Tools for Visual Studio

ASP.NET and Web Tools 2017   15.0.30726.0
ASP.NET and Web Tools 2017

ASP.NET Core Razor Language Services   1.0
Provides languages services for ASP.NET Core Razor.

ASP.NET Template Engine 2017   15.0.30726.0
ASP.NET Template Engine 2017

ASP.NET Web Frameworks and Tools 2017   5.2.50601.0
For additional information, visit https://www.asp.net/

Azure App Service Tools v3.0.0   15.0.30728.0
Azure App Service Tools v3.0.0

Azure Data Lake Node   1.0
This package contains the Data Lake integration nodes for Server Explorer.

Azure Data Lake Tools for Visual Studio   2.2.9000.1
Microsoft Azure Data Lake Tools for Visual Studio

Azure Data Lake Tools for Visual Studio   2.2.9000.1
Microsoft Azure Data Lake Tools for Visual Studio

Common Azure Tools   1.10
Provides common services for use by Azure Mobile Services and Microsoft Azure Tools.

Fabric.ApplicationInsights   1.0
Allows user to instrument their Service Fabric projects for Application Insights.

Fabric.DiagnosticEvents   1.0
Fabric Diagnostic Events

JavaScript Language Service   2.0
JavaScript Language Service

JavaScript Project System   2.0
JavaScript Project System

JavaScript UWP Project System   2.0
JavaScript UWP Project System

Merq   1.1.17-rc (cba4571)
Command Bus, Event Stream and Async Manager for Visual Studio extensions.

Microsoft Azure HDInsight Azure Node   2.2.9000.1
HDInsight Node under Azure Node

Microsoft Azure Hive Query Language Service   2.2.9000.1
Language service for Hive query

Microsoft Azure Service Fabric Tools for Visual Studio   1.7
Microsoft Azure Service Fabric Tools for Visual Studio

Microsoft Azure Stream Analytics Language Service   2.2.9000.1
Language service for Azure Stream Analytics

Microsoft Azure Stream Analytics Node   1.0
Azure Stream Analytics Node under Azure Node

Microsoft Azure Tools   2.9
Microsoft Azure Tools for Microsoft Visual Studio 2017 - v2.9.50719.1

Microsoft Continuous Delivery Tools for Visual Studio   0.3
Simplifying the configuration of continuous build integration and continuous build delivery from within the Visual Studio IDE.

Microsoft JVM Debugger   1.0
Provides support for connecting the Visual Studio debugger to JDWP compatible Java Virtual Machines

Microsoft MI-Based Debugger   1.0
Provides support for connecting Visual Studio to MI compatible debuggers

Microsoft Visual C++ Wizards   1.0
Microsoft Visual C++ Wizards

Microsoft Visual Studio VC Package   1.0
Microsoft Visual Studio VC Package

Mono Debugging for Visual Studio   4.6.8-pre (ec7034f)
Support for debugging Mono processes with Visual Studio.

NuGet Package Manager   4.3.1
NuGet Package Manager in Visual Studio. For more information about NuGet, visit http://docs.nuget.org/.

SQL Server Data Tools   15.1.61707.200
Microsoft SQL Server Data Tools

ToolWindowHostedEditor   1.0
Hosting json editor into a tool window

TypeScript   2.3.4.0
TypeScript tools for Visual Studio

Visual C++ for Cross Platform Mobile Development (Android)   15.0.26724.01
Visual C++ for Cross Platform Mobile Development (Android)

Visual Studio Code Debug Adapter Host Package   1.0
Interop layer for hosting Visual Studio Code debug adapters in Visual Studio

Visual Studio Tools for Apache Cordova   15.120.6728.1
Visual Studio Tools for Apache Cordova

Visual Studio tools for CMake   1.0
Visual Studio tools for CMake

Visual Studio Tools for Universal Windows Apps   15.0.26730.08
The Visual Studio Tools for Universal Windows apps allow you to build a single universal app experience that can reach every device running Windows 10: phone, tablet, PC, and more. It includes the Microsoft Windows 10 Software Development Kit.

WebJobs Tools v1.0.0   __RESXID_PRODUCTVERSION__
WebJobs Tools v1.0.0

Xamarin   4.7.9.45 (bd7e3753c)
Visual Studio extension to enable development for Xamarin.iOS and Xamarin.Android.

Xamarin.Android SDK   7.4.5.1 (fb018c5)
Xamarin.Android Reference Assemblies and MSBuild support.

Xamarin.iOS and Xamarin.Mac SDK   11.0.0.0 (152b654)
Xamarin.iOS and Xamarin.Mac Reference Assemblies and MSBuild support.


Could you help in this regards because, the error you mention was not expected for me.

How To Install MSBuild Targets

$
0
0

I have a c# web api application running in VS2015.   

Via command line and MSBuild, I am trying to build a project on a machine that does not have Visual Studio installed.

The following command fails with error:

COMMAND:
C:\Windows\Microsoft.NET\Framework\v4.0.30319>msbuild.exe C:\src\cdp.authorization.cicd\cdp.authorization.cicd\cdp.authorization.api\cdp.authorization.api.csproj

ERROR:
error MSB4019: The imported project "C:\Program Files (x86)\MSBuild\Microsoft\VisualStudio\v11.0\WebApplications\Microsoft.WebApplication.targets" was not found. Confirm that the path in the <Import> declaration is correct, and that the file exists on disk.

When I copy a folder to this machine (C:\Program Files (x86)\MSBuild\Microsoft\VisualStudio\v14.0\WebApplications) that includes Microsoft.WebApplication.Targets file AND add a parameter to my command (/p:VisualStudioVersion=14.0) then the build works:

COMMAND:

C:\Windows\Microsoft.NET\Framework\v4.0.30319>msbuild.exe C:\src\cdp.authorization.cicd\cdp.authorization.cicd\cdp.authorization.api\cdp.authorization.api.csproj /p:VisualStudioVersion=14.0

My question is:  How can I set up the target machine so that the proper *.targets files are installed properly for all versions of .NET 4.* applications.

Thanks


Please Vote &/or "Mark As Answer" if this post is helpful to you. Thanks and happy coding :D

How MSBuild knows what Platform and Configuration of the referenced project to use?

$
0
0

   Let's say I have 3 projects in a solution: A, B and C and the following settings for each project for the solution Platform = AnyCPU and Configuraiton = Debug

A - Platform = AnyCPU; Configuration = Debug

B - Platform = AnyCPU; Configuraiton = Debug

C - Platform = AnyCPU; Configuration = Release

   Now, let's say project A references B and C using ProjectReference in its project file. Then I build the solution. How MSBuild knows while building project A that it should take project B binaries which correspond to Platform = AnyCPU; Configuraiton = Debug and project C binaries which correspond to Platform = AnyCPU; Configuration = Release? Could somebody point to a place in the .targets files or any example with explanations?

Thank you


Alex

Program can't find explicitly linked DLL

$
0
0
Hi,

I am trying to modify a C program that explictly links to a DLL to connect to a Driver for an amplifier. It came with the DLL file, the C source code and a pre-compiled executable. The executable runs fine, but when I re-built it using the Developer Command Prompt for VS 2017, it can't find the library (errorcode 126). I verified that the path is correct, the DLL is where the program is looking for it.

Here is the part of the program that loads the DLL:

TCHAR Path[MAX_PATH ];
...
TCHAR Hardcoded[255] = _T("C:\\Windows\\System32\\TMSiSDK.dll");
Path[0] = 0 ; // When debugging, use the locally build lib
lstrcat(Path, Hardcoded);
...
LibHandle = LoadLibrary(Path); 

And here is the command I used to build it:
cl sampler.c

Any ideas about what I'm doing wrong? 

It's my first time using a program with DLL-s and I'm also not used to developing under Windows, so excuse my newbieness.

VisualStudioRemoteeployer not getting uninstalled properly

$
0
0

Hi,

Sometimes the VisualStudioRemoteDeployer service in our Remote Server is not getting uninstalled properly and as a result several services appear in stopped state. I understand that, ideally these services should be installed and uninstalled automatically and also that there is no harm in manually removing services in such cases. But manually removing the services is complicated for us sometimes due to the approval process we have to follow as it involves servers restarts. 

Is there a way to avoid this issue where services are not being uninstalled properly?

Thanks

Vishnu

Is Visual C++ Redistributable for Visual Studio 2015 needed on XP PC when Platform Toolset configured as v140_xp ?

$
0
0

Hi All, 

I have a legacy C++ software that was build in Visual Studio 2003 and running on  Windows XP. 

Today, I gave it a try to migrate it to 2015 by setting the Platform Toolset to v140_xp  in order to target XP. 

Surprisingly, it builds and run straightaway on the target, without me having to install the Visual C++ Redistributable 2015 on the XP machine. 

So I am a bit puzzled if this is just a coincidence or if that is how it is supposed to behave.

Note that, on the target, only the Redistributable 2008 is installed. 

In summary, I would like to know if we need to install the Redistributable 2015 on the XP machine when using v140_xp option from VS2015.

I would be happy to have some clarification on this.  

Cheers

warning MSB3277: Found conflicts between different versions of "Microsoft.CSharp" that could not be resolved.

$
0
0

Visual Studio 2017.

After installation and following the walkthrough sof Learn app-building basics with Xamarin.Forms in Visual Studio.

Build fails with message:
Found conflicts between different versions of "Microsoft.CSharp" that could not be resolved.
It happens after step 8 of write shared data service. I have tried to install all the available version of Microsoft.CShap, but cannot resolved the error. The results are:
version 4.0.0 The package may not be fully compatible with the project.
Other version: warning MSB3277: Found conflicts between different versions of "Microsoft.CSharp" that could not be resolved.
I should appreciate your help to find out the way to handle it.


angular project: The fully qualified file name must be less than 260 characters, and the directory name must be less than 248 characters.

$
0
0

I have an Angular project (ASP.NET Core over .NET 4.6) built with VS2017. Project is ok, but I cannot release and publish it because build reports:

Unable to copy file "D:\Source.Git\AAAAAAAA\AAAA.AAAAAAA.Web\ClientApp\node_modules\.cache\uglifyjs-webpack-plugin\content-v2\sha512\20\4f\50f5067a85b2475f2b212c7eeccf1a529464a2f4a71dea4f363200f72d40aa09ccdcf9b1452c0e27792882b51a53fcc2778d1801292dbef940725b12a7ab" to "D:\Source.Git\AAAAAAAA\AAAA.AAAAAAAWeb\obj\Release\net462\win7-x86\PubTmp\Out\ClientApp\node_modules\.cache\uglifyjs-webpack-plugin\content-v2\sha512\20\4f\50f5067a85b2475f2b212c7eeccf1a529464a2f4a71dea4f363200f72d40aa09ccdcf9b1452c0e27792882b51a53fcc2778d1801292dbef940725b12a7ab". The specified path, file name, or both are too long. The fully qualified file name must be less than 260 characters, and the directory name must be less than 248 characters.

I tried to copy solution (as workaround, not a solution available) to Z:\a\ but same. Tried to enable long file paths in W10 via regedit but VS 2017 ignores it. Tried npm flatten packages. Nothing.

I cannot change npm modules, nor I cannot change VS internal paths! So how can an Angular project built with VS released?????

Debugging msbuild project

$
0
0

   Is it possible to debug a msbuild project in Visual Studio 2017? Sort of what is described here https://blogs.msdn.microsoft.com/visualstudio/2010/07/06/debugging-msbuild-script-with-visual-studio/ but this approach does not work in VS2017.



Alex

vs 2017 show an error :" you need start docker before build 、debug or run containerized project". but i have alreay start docker

cannot access FileListAbsolute while compiling in vs2017

$
0
0

After every couple of builds i have to open task manager endtask Vbcscompiler.exe all instances of msbuild.exe over and over again and still it wont compile. i was hoping that with improved versions this problem will go away but it doesn`t. when is it going to get fixed. compiling is getting painful

Thanks

Regards


Thanks Regards


Unified Test Agents

$
0
0

Guys 

                 I want to know what are the: Unified Test Agents: are and how they are better than simpler Build Agents we have.

How they benefit and how we can use this using TFS 2018. Any Video Tutorial and step by step Guide. Thanks!

WS


WSBukhari

Where To Put Custom Tool Definitions

$
0
0

In this article,   https://msdn.microsoft.com/en-us/library/bb397428.aspx, the following configuration code format is recommended for pointing code using the "MSBuildToolsPath" to a specific location.  However, the article does not specifically mention WHERE to place this code.  My assumption was that I could add it to msbuild.exe.config but file is very difficult to modify due to security.  Where does this code go?  

<msbuildToolsets default="12.0">  <toolset toolsVersion="12.0">  <property name="MSBuildToolsPath"   
        value="C:\SpecialPath" />  </toolset>  </msbuildToolsets>

Thanks


Please Vote &/or "Mark As Answer" if this post is helpful to you. Thanks and happy coding :D

TFS Build Agent (XAML) - xx is already mapped in workspace

$
0
0

Hi

After an upgrade from tfs2015 to tfs2017 update 3.1 we experianced this error running a build
"The path d:\dev\ourprduct\ourprduct\Sources is
already mapped in workspace 40_28_Build2015-1;f1cf0cf2-559d-470b-9e2d-9301f5cd972a"

tf workspaces and tf workspace commands where used to delete all existing items and start again. Same problem.
And supiciously the 40_28xx seems to tbe the build agent itself..

So the work around was to change the path via a junction point.

C:\Program Files (x86)\Microsoft Visual Studio 14.0\Common7\IDE>tf workspaces /collection:http://ourserver:8080/tfs/defaultcollection shows ONLY the latest build agent workspace
"tf workspace" shows nothing

QUESTIONS:

1. How do you resolve this type of issue when the tf tools show no other workspace uses ?
2. Why does 'tf workspace' show nothing with 'tf workspaces' shows something ?

Thanks

unable to find Team foundation server in Forum Category

$
0
0
unable to find Team foundation server in Forum Category 

Error MSB6006 "CL.exe" exited with code -1073741515

$
0
0

Hello,

I got this error while compile the code.

SeverityCode DescriptionProjectFileLineSuppression State
ErrorMSB6006"CL.exe" exited with code -1073741515. ConsoleApplication5E:\Program Files (x86)\Microsoft Visual Studio\2017\Community\Common7\IDE\VC\VCTargets\Microsoft.CppCommon.targets273

 

HOw to resolve this?

Viewing all 2763 articles
Browse latest View live


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>