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

Trying to build a gRPC example. How to solve?

$
0
0

I tried to build a gRPC sample GreeterProtos using Visual Studio 2017, but it fails proceeding with the shell script:

Part of the .csproj file:

  <!-- Generate the code from all of the proto files -->
  <Target Name="GenProtos" BeforeTargets="BeforeBuild" Inputs="@(Proto)" Outputs="@(Generated)">
    <Message Text="Generating protos @(Proto)" Importance="High" />
    <!-- TODO: Run different command lines per OS. -->
    <Exec Command="$(ProjectDir)..\..\tools\gen_protos.sh" />
    <!-- Ensure all of the generated files are compiled. -->
    <ItemGroup Condition="@(Compile)" == ''">
      <Compile Include="generated\*.cs" />
    </ItemGroup>
  </Target>


Error:

Error MSB3073 The command "D:\BHiep\New Workspace\grpc-samples-dotnet-master\grpc-samples-dotnet-master\dotnet_core\Greeter\GreeterProtos\..\..\tools\gen_protos.sh" exited with code 9009.


error MSB4062: The “GetOutOfDateItems” task could not be loaded from the assembly

$
0
0

I am getting following error while building in MSFT VS 2017 using cmake.

C:\Program Files (x86)\Microsoft Visual Studio\2017\Professional\Common7\IDE\VC\VCTargets\Microsoft.CppCommon.targets(181,5): error MSB4062: The "GetOutOfDateItems" task could not be loaded from the assembly C:\Program Files (x86)\Microsoft Visual Studio\2017\Professional\Common7\IDE\VC\VCTargets\Microsoft.Build.CppTasks.Common.dll. Confirm that the 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.

I found a link that says (https://developercommunity.visualstudio.com/content/problem/341712/error-msb4062-the-getoutofdateitems-task-could-not.html) that fix for it is available in VS 2019, but I cannot move to VS 2019 and want to get it to working on VS 2017. Also I am not able to locate which file to edit for including suggested changes at the link. Could one please provide some workaround for VS 2017?

A build controller or agent's status changes notification not working

$
0
0

Hi All,

We used a TFS in-built notification to know the status of agents. But we didn't receive any email notification when we change the agent status.

In-built notification: A build controller or agent's status changes (query fields- when status changes it should notify us)

TFS version: TFS 2018 update 1

Email notification is working fine as we tested with work item change notification.

Query: is the state of agent in TFS andstatus in agent server are same or not ??

Can someone please help on our issue.

Regards,

Rajukumar

 

Build Agent goes offline after closing run cmd window

$
0
0
I set up a vNext build agent in windows 10 machine. also while configuring the agent i did "Yes" for 'run as service' , but still when i close the run cmd the build agent goes offline. i tried checking in the local services, but even when the run cmd window is running, i dont see any services related to buildagent.

Purpose of debug and release configurations

$
0
0

Hi there!

I have posted the same question before without finding an anwser. After spending some time with VS I may now be more exprerienced to phrase the question better! Smile The following applies to VS2005 beta 2. Follow the steps:

  • Open VS and create a new windows app (I use VB but I guess the same goes for C#)
  • Hit F5 to run the application. The following files are created under bin\debug:
    • WindowsApplication1.exe
    • WindowsApplication1.xml
    • WindowsApplication1.pdb
    • WindowsApplication1.vshost.exe
  • Now hit Ctrl+Shift+B to build the application. The following files are created under bin\release (vshost.exe is missing):
    • WindowsApplication1.exe
    • WindowsApplication1.xml
    • WindowsApplication1.pdb
  • Close VS, open it again, load the same project and hit Ctrl+Shift+B to build once more. Now all the files are created under bin\release, including vshost.exe!!! Tongue Tied

Idea QUESTION1: What's pdb file is doing in the release folder? Isn't it only for debug purposes?
Idea QUESTION2: Why is vshost.exe created in the release folder? And why only the second time? Is it a bug?
Idea QUESTION3: Provided the development process of a specific application does not require any different configuration settings for the debug and release versions, is there a meaning having both these configurations? If you sent the project's output to a colleague to use it would you sent the debug or the release version? (remember, they both include the pdb file).

Thanks,
Dimitris

MSBuild integration with Jenkins-Issue

$
0
0

Hi All,

I am new to MSBuild and trying to automate the MSBuild task using Jenkins. I am able to execute the below command from cmd prompt 

C:\Program Files (x86)\Microsoft Visual Studio\2019\BuildTools\MSBuild\Current\Bin> msbuildD:\Project\clientservice\clientservice.sln/p:Configuration=Debug /p:DeployOnBuild=true /p:PublishProfile=D:\Project\clientservice\PubProfile.pubxml /p:PublishUrl=D:\WebApplication\Publish

But I am unable to execute the same command in MSBuild under "Build Visual studio project or solution using MSBuild", I am getting the below error when I execute the job in jenkins.

Can someone help me on this fix it.

Regards,

Dhamodharan.

error MSB6003: The specified task executable "cmd.exe" could not be run.- The specified path, file name, or both are too long

$
0
0

I am generating the vcproject from cmake. While building the generated project I am getting below error. 
This error used to come in past in my system, but went off after I re-generated through cmake, but this time it seems stay permanently .

The full error message is like this...

error MSB6003: The specified task executable "cmd.exe" could not be run. 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.

Generated path for projects : C:\Development\projs\build-rel

VS2017 KMDF driver build for Windows 7 - missing property pages

$
0
0

Hi,

I am trying to build my driver for Windows 7. I have changed settings in solution property page to WDK 8.1 and toolkit to v120. After changes I am no longer able to open solution properties and pops up warning information: "There are no property page for the selection." If I try to compile solution I get error message in console: "C:\Program Files (x86)\Microsoft Visual Studio\2017\Professional\Common7\IDE\VC\VCTargets\Microsoft.Cpp.Redirect.12.props(51,3): error MSB4019: The imported project"C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\V120\Microsoft.cpp.props" was not found. Confirm that the path in the <Import> declaration is correct, and that the file exists on disk."

I tried to reinstall WDK 8.1, SDK's with no help. I have installed VS2013 - no help. I am running out of ideas what to do. Any thoughts how can I compile driver for Win7?

Cheers.



Issue need help on The target "ContainerPrepareForBuild" does not exist in the project._

$
0
0

Hi ,

    I am stuck ,as by mistake i removed some piece code  which was targeting docker container build in this file Microsoft.Common.CurrentVersion.targets.

Now I am running web api project and I am getting this error The target "ContainerPrepareForBuild" does not exist in the project.I have restored visual studio.My other project based on docker is building fine .I dont know how I can get rid of this error.Its not allowing me to run my .net core api on visual studio 2019 .

Please help 


rahul

"because it is being used by another process" error has me dead in the water.

$
0
0

I've been dealing with this error using VS 2017 for a year now. I compile my solution which contains about 100 projects and some of the projects fail for this reason. I simply build again and the projects that failed will build though other projects might fail further down the line. Ultimately, as I keep building (making no changes in between), they will all pass. Since it only happened on my laptop and desktop and not on the build server I just always did multiple builds and tolerated it.

However, now it has hit the build server and I can no longer get a build completed, so I had to take the precious time to investigate it more. I tried VS2019 to see it if would change anything - nope. Then I started keeping track of which of the approx. 100 projects it would fail on. That led me to notice that when it failed, it was always where a second compilation pass was occurring. Searching the build log for "MarkupCompilePass2:" revealed that all the projects that failed were undergoing a second compile before the failure. Here is a sample of lines (empty lines added for clarity) from the build log where one of the failure occurs (note my bolding):

PrepareForBuild:

Creating directory "obj\x86\Release_Signed\".

Project "C:\agent\_work\1\s\VS5\VS5.Comms.SignalStrength\VS5.Comms.SignalStrength.vbproj" (65:2) is building "C:\agent\_work\1\s\VS5\VS5.Comms.SignalStrength\VS5.Comms.SignalStrength_pecgedwc_wpftmp.vbproj" (75) on node 1 (_CompileTemporaryAssembly target(s)).

CoreCompile:

  C:\Program Files (x86)\Microsoft Visual Studio\2017\Professional\MSBuild\15.0\Bin\Roslyn\vbc.exe /noconfig /imports: ... blah, blah, blah ...

  Using shared compilation with compiler from directory: C:\Program Files (x86)\Microsoft Visual Studio\2017\Professional\MSBuild\15.0\Bin\Roslyn

Done Building Project "C:\agent\_work\1\s\VS5\VS5.Comms.SignalStrength\VS5.Comms.SignalStrength_pecgedwc_wpftmp.vbproj" (_CompileTemporaryAssembly target(s)).

MarkupCompilePass2:

  MarkupCompilePass2 successfully generated BAML or source code files.

CleanupTemporaryTargetAssembly:

  Deleting file "obj\x86\Release_Signed\VS5.Comms.SignalStrength.dll".

##[error]C:\Windows\Microsoft.NET\Framework\v4.0.30319\Microsoft.WinFx.targets(480,10):Error MSB3061: Unable to delete file "obj\x86\Release_Signed\VS5.Comms.SignalStrength.dll". The process cannot access the file 'C:\agent\_work\1\s\VS5\VS5.Comms.SignalStrength\obj\x86\Release_Signed\VS5.Comms.SignalStrength.dll' because it is being used by another process.

C:\Windows\Microsoft.NET\Framework\v4.0.30319\Microsoft.WinFx.targets(480,10): error MSB3061: Unable to delete file "obj\x86\Release_Signed\VS5.Comms.SignalStrength.dll". The process cannot access the file 'C:\agent\_work\1\s\VS5\VS5.Comms.SignalStrength\obj\x86\Release_Signed\VS5.Comms.SignalStrength.dll' because it is being used by another process. [C:\agent\_work\1\s\VS5\VS5.Comms.SignalStrength\VS5.Comms.SignalStrength.vbproj]

Done Building Project "C:\agent\_work\1\s\VS5\VS5.Comms.Signal

-------------------------------------

Is there a way around this?

Build Artifacts

$
0
0
We have a main build definition that attempts to fetch build artifacts from 4 other builds. Occasionally it will error attempting to fetch saying that there are no successful builds. When I look at the other builds definitions, they all indicate that there are no builds. Earlier in the day, the build successfully ran. What happened to the 4 other builds? How long are build artifacts retained?

Visual Studio with Fortify Source Code Analyzer Assessment

$
0
0

Hi All,

we have integrated Fortify Source Code Analyzer (SCA) Micro Focus Tool with Team Foundation Server 2017. Fortify is used to perform security scan of the code during the build execution. It performs scan and generates fpr file which indicates if any bugs, vulnerabilities or criticality of code. we have noticed that it is working fine for Visual Studio 2015 but failing for Visual Studio 2017.

when Visual Studio 2017 is selected by default it is going for Visual Studio 2015 and failing to execute the build. For Build Translate at Fortify Task it has following options:

.Net

Java

other

if "other" option is selected then there is additional build parameters field is available. Is there any way to make it pick " Visual Studio 2017"  either by adding parameter or adjusting any settings.

Can anyone please guide me how I can make the build definition understand to pick only Visual Studio 2017 during execution of Fortify Source Code Analyzer Assessment task with a build definition.

Thanks & Regards,

Sumana Thakur.

Xamarin.Essentials.dll.mdb

$
0
0
ErrorThe last access/last write time on file "C:\ProgramData\Xamarin\NuGet\xamarin.essentials\1.0.1\lib\monoandroid81\Xamarin.Essentials.dll.mdb" cannot be set. Access to the path 'C:\ProgramData\Xamarin\NuGet\xamarin.essentials\1.0.1\lib\monoandroid81\Xamarin.Essentials.dll.mdb' is denied.WishStore.Android

Which microsoft visual studio 2015 related nugget packages/references should be ignored while adding project to the Team Foundation server 2018

$
0
0
  1. Which microsoft visual studio 2015 related nugget packages/references should be ignored as a best practice while adding project to the Team Foundation server 2018 manually and creating the .tfignore file manually
  2. and which files should be added in the .tfignore file.

MSBuild report error running code analysis: fatal error C1250: Unable to load plug-in

$
0
0

I got following error when compiling the project with Build Tools 2017 in Windows container "windowservercore".

Running Code Analysis for C/C++...

c1xx : error C2220: warning treated as error - no 'object' file generated [C:\jenkins\workspace\ABC-DEV\ABC\ABC.vcxproj]
c1xx : fatal error C1250: Unable to load plug-in 'C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\bin\localespc.dll'. [C:\jenkins\workspace\ABC-DEV\ABC\ABC.vcxproj]

But it does not report this error when running the same compile script on a Win10.

The Win 10 installed with Build Tools 2017 and same work loads as the container.

localespc.dll is actually under 'C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\bin' in container.

Anyone knows how to resolve this?

Compile script:

call "C:\Program Files (x86)\Microsoft Visual Studio\2017\BuildTools\VC\Auxiliary\Build\vcvarsall.bat" x64

"C:\Program Files (x86)\Microsoft Visual Studio\2017\BuildTools\MSBuild\15.0\Bin\MSBuild.exe"  C:\Work\ABC.sln /p:configuration=Release /p:platform=x64 /t:rebuild



كاريير وكيل معتمد 01225025360 صيانة فورية 0235695244 صيانة تكييف

$
0
0

CARRIER                    

بلاغات اعطال ثلاجات وستنجهاوس01014723434&01127571696&مدينة نصر

اصلاح ثلاجات باساب ( 0235695244 ) ثلاجات باساب ( 01225025360)سيديبشر

بلاغات اعطال تكييفات يورك01014723434&01127571696&مدينتي

اصلاح تكييفات يونيون اير ( 01014723434 ) تكييفات يونيون اير(01225025360) الدقهلية

Viewing all 2763 articles
Browse latest View live


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