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

What is issue in this MSBuild powershell script

$
0
0
$baseprojectfolder ="C:\Users\User1\Documents\visual studio 2013\Projects\XSDdefinition\XSDdefinition.csproj"
$outputfolder =$baseprojectfolder +"Output\"
echo $outputfolder
$msbuildpath ="C:\Windows\Microsoft.NET\Framework64\v4.0.30319\MSBuild.exe"
$releasepath =$baseprojectfolder + "bin\Release"
$options = "/p:Configuration=Release"

if ([System.IO.Directory]::Exists($outputFolder))
{
 [System.IO.Directory]::Delete($outputFolder, 1)
}


$clean = $msbuildpath + "$baseprojectfolder"  + $options  + "/t:Clean"
echo $clean
$build = $msbuildpath + "$baseprojectfolder" + $options + "/t:Build"
echo $build

Invoke-Expression $clean
Invoke-Expression $build

I created a MSbuild powershell script to execute a single project I got
Msbuild error LMSB1008 only one project can be specified 

but i specified a single project in this .


How to speed up compilations

$
0
0

Recently updated to VS2015, I got a new replacement box as well  But it may not be quite powerful enough for VS2015.  I see compilations speeds of about 2-3 seconds per CPP file, there has to be something else going on.  This is not normal. My projects are many and large. Its taking forever!   The box is a 16g, i7 Quad 2.3ghz speed running Window 2012.  It should be pretty fast and it is, except with VS2015 building.    What can I do to speed up the compilations?  I mean really, 2-3 seconds per CPP file?  

Any tips  would be helpful, because what i see is awful. :(


Hector Santos, CTO Santronics Software, Inc. http://www.santronics.com


Building and Deploying an SSIS package using MSBuild.

$
0
0

We have a need to process and insert into an SQL Database ~10M records within a 24 hour period. As a result we have plumbed for an SSIS solution for its speed.

As we are using TFS 2015 Update 2 we use TFS Build to create our builds and Octopus Deploy to create NuGet packages and deploy our solution into various environments.

The SSIS package was developed using VS 2015 Prof Update 2 with SQL Server Data Tools version 14.0.60413.0.

I have searched all over the net for a solution to the issue that MSBuild does not appear to support SSIS solutions.

So how do I use MSBuild to create an IsPac file ready for use by Octopus Deploy?

Paul.

Building App for ARM-based processor

$
0
0

I have an app (VS2015 VB) that runs great on several other machines. However, the true target of the App is a Dell XPS-10 Tablet running Windows RT 8.1. When I try deploying it onto the Tablet, I'm getting: "This app can't run on your PC"

The tablet runs a Snapdragon S4 Processor APC8060A, 32-bit Operating System, ARM-based processor.

I've searched online for a solution and have found many references to:

MSBuild Solution.sln /p:configuration=debug /p:platform="ARM"

But, it generates an error message: error MSB4126: The specified solution configuration "release|ARM" is invalid.

I've also looked into adding ARM to the BUILD|Configuration Manager, but I'm also not having any success.

I'm sure that I'm missing something simple, but I'm getting frustrated. I've worked for several years in earlier versions of Visual Studio, but never had to install an App onto a Tablet...only Desktops and Laptops...without ever considering this contingency.

I need the App to run on the Tablet.

Any help would be greatly appreciated.

Thanks in advance for your time.


Paul D. Goldstein Forceware Systems, Inc.

File is missing

$
0
0

Good Morning/Afternoon

I have just opened a file (C#) that I have been working on for around a month and have found that it has completely disappeared. In addition to this I am unable to type anything and my preferences have disappeared. Someone please help!

Many thanks,

Elliot

EDIT:

Also in the >Bin>Debug and >Bin>Release folder there is no longer a file. The Output has noted that the file can no longer find it's directory, I have been looking all over for it but cannot seem to locate the file. Can someone help? This is beyond frustrating! Thank-you in advance!

 

Mixing Android and Win32 platforms in the same VS2015 project

$
0
0
Is it possible to have the same VS2015 project that can compile for Android and Win32 platforms?

Building project in release mode with projects that contain license.licx throws 'could not find file' error on Visual Studio 2015

$
0
0

I'm having trouble building my projects in Release mode that have licenses.licx files.  I get the error below when i build on Visual Studio 2015:

Error reading resource '<ProjectName>.dll.licenses' -- 'Could not find file '<directory><ProjectName>.dll.licenses'.'





Installer won't open/spams my task manager

$
0
0

http://i64.tinypic.com/3005hj4.jpg

Tried restarting,redownloading etc.Won't help.


CODE_ANALYSIS set for Visual Studio but not for MsBuild

$
0
0

Hi,

I have a question:)

I have a project which is written using Visual Studio and build on the Server (TFS) using msbuild.

The project contains this stupid main function:

#include <iostream>

int main()
{
#ifndef CODE_ANALYSIS
    std::cout << "Code Analysis off" << std::endl;
#else
    std::cout << "Code Analysis on" << std::endl;
#endif

    getchar();

    return 0;
}

It should print “… off” if the static code analyzes (SCA) feature is off and vice versa.

This project has two configurations:

-         Debug – SCA is off

-         Debug_SCA – Copy of “Debug” but with enabled SCA

Ok, this is the complete project and setup I use.

If I build this using Visual Studio and run this afterwards everything works as expected. The exe from the Debug config prints “… off” and the Debug_SCA prints “… on”.

But if I build the same project using msbuild:

msbuild /p:configuration=debug ConsoleApplication2.vcxproj

msbuild /p:configuration=debug_sca ConsoleApplication2.vcxproj

It doesn’t work anymore. Both resulting assemblies print “… off”. I can see from the msbuild output that the SCA is enabled for Debug_SCA build but msbuild doesn’t set the preprocessor define.

Is this a bug or a feature?

Is there something which I can use that it works within Visual Studio and msbuild?

Regards,

David

This project is out of date, project name - Win32, Would you like to rebuild? (Also sometimes followed by something like Error - The specified file cannot be found)

$
0
0

Hi, when I first tried using Fortran on visual studio 2015 I kept getting the message  

This project is out of date
<project name> - Win32
Would you like to rebuild?

followed by something like

Error - The specified file cannot be found

and then my program wouldn't run.

At first I only managed to resolve the second error message so that it would run but I kept getting the first one that said it was out of date.

However, eventually I managed to fix both and I just thought I'd share with everybody else because there doesn't seem to be a lot out there that explains how to fix these!

FIRST - To fix the issue "Error - The specified file cannot be found" so that you can run programs.

When reinstalling Intel Parallel Studio I noticed some warnings which I'd just bypassed the first time round. By actually reading them I was able to understand what I was missing (it said "Fortran programs would not build because Microsoft Visual Studio did not include the C++ compilers and tools.").

To combat this I took these steps, which you may follow:  

  1. Uninstall MS Visual Studio and Intel Parallel Studio (I say uninstall and not modify because I don't know if it would work if you just modified it. Some advice I found online said certain things wont work if you don't install them in the correct order)

  2. Reinstall MS Visual Studio and choose custom install, making sure you select the components which mention C++ compilers(I don't know which components exactly so I selected them all)

  3. Once reinstallation of MS Visual Studio is complete, reinstall Intel Parallel Studio and look out for any warnings(Yellow caution triangles with exclamation marks inside. For everything to work, there should only be one warning regarding MPSS. If you already have MPSS on your computer and the warning is just saying it will be restarted then you're good, just ignore this warning)

  4. When reinstallation is complete, open MS Visual Studio and try and run a Fortran program (easiest way is to go to File>New> Project>Intel(R) Visual Fortran> Console Application>Main Program Code, not forgetting to name it before you click "OK" and then running it by going to Debug>Start without debugging. You might still get the error message "This project is out of date" but if you rebuild it then it should run i.e. you should get a window that says"Hello world! Press any key to continue...")


SECOND - To fix the issue "This project is out of date"to avoid that annoying dialogue box WITHOUT selecting "do not show this window again".

Okay, so when you start a new project on MS Visual Studio, at the top (underneath File, Edit, View etc...) there should be dropdown menus, one with (x86), 32-bit, x64 or something a long those line. You need to configure this to your own computer.

I'm running on 64-bit and I had (x86) in selected in the dropdown menu so here are the steps to take to fix this:

  1. Click on the arrow on the dropdown menu and select "configuration manager..."

  2. When the configuration manager window pops up, on the right hand side find "active solution platform". Select "<New...>" from the drop down menu

  3. A new dialogue will open with two dropdowns; first select "x64" (or whatever you're running on), then in the next drop down select "Win32" (or whatever it said in the dropdown menu at the top of the MS Visual Studio window when you first started the new project).

    Select the checkbox called "Create new project platforms" then click "OK"

  4. Now you have returned to the configuration manager. Check the "active solutions platform" dropdown to make sure "x64" is selected (or whatever you're running on) and click "close"

  5. On the main MS Visual Studio window you should see "x64" (or whatever you're running on) displayed in the dropdown at the top of the screen. If it is not, select it

    • Try running the program, it should run without issue (easiest way is to go to File>New> Project>Intel(R) Visual Fortran> Console Application>Main Program Code, not forgetting to name it before you click "OK" and then running it by going to Debug>Start without debugging. You might still get the error message "This project is out of date" but if you rebuild it then it should run i.e. you should get a window that says "Hello world! Press any key to continue...")

    I hope this helps and if anyone more qualified would like to add anything, feel free.

    Craig











    How to create a wrapper class in Visual Studio 2013 for activex control

    $
    0
    0

    I am not sure which forum I should post my question. If this thread should not be here, please forgive me.

    I have built an COleControl under VC6 which can be used as an activex control by inserting it to an MFC C++ project through VC6. VC6 will generate a wrapper class for me. With the following string in the header file

    // Machine generated IDispatch wrapper class(es) created by Microsoft Visual C++

    Now I am developing under Visual Studio 2013, I want to upgrade the COleControl. I want to modify and build it under VS2013 and also I can use it. The problem is when I insert it as an activex control into my MFC dialog, VS2013 is not going to generate a complete wrapper class for me. The generated wrapper class has some functions missing.

    From here, it said I have to create the wrapper class by myself. Is that means there has no more support under VS2013?


    Converting a Lightswitch project from VS2012 to VS2015

    $
    0
    0

    We have a light switch project that built in VS2012 and using MSBuild on a build server.

    This project has been converted to VS2015. On the build server it builds fine in VS but gives the following errors when using msbuild:

    "D:\scm\Licence\Licensing\PP.Licensing.PPLicenseManager\Client\Client.csproj" (default target) (8) ->
    (LSResourceGenerators target) -> 
      C:\Program Files (x86)\MSBuild\Microsoft\VisualStudio\v14.0\LightSwitch\v5.0\Microsoft.LightSwitch.Build.Tasks.targets(217,5): error MSB4018: The "LSResourceGeneratorsTask" task failed unexpectedly. [D:\scm\Licence\Licensing\PP.Licensing.PPLicenseManager\Client\Client.csproj]
    C:\Program Files (x86)\MSBuild\Microsoft\VisualStudio\v14.0\LightSwitch\v5.0\Microsoft.LightSwitch.Build.Tasks.targets(217,5): error MSB4018: System.IO.FileNotFoundException: Unable to find root project file at this location: {0} [D:\scm\Licence\Licensing\PP.Licensing.PPLicenseManager\Client\Client.csproj]
    C:\Program Files (x86)\MSBuild\Microsoft\VisualStudio\v14.0\LightSwitch\v5.0\Microsoft.LightSwitch.Build.Tasks.targets(217,5): error MSB4018: File name: 'D:\scm\Licence\Licensing\PP.Licensing.PPLicenseManager' [D:\scm\Licence\Licensing\PP.Licensing.PPLicenseManager\Client\Client.csproj]
    C:\Program Files (x86)\MSBuild\Microsoft\VisualStudio\v14.0\LightSwitch\v5.0\Microsoft.LightSwitch.Build.Tasks.targets(217,5): error MSB4018:    at Microsoft.LightSwitch.BuildTasks.Common.CommandLineBuildContainerFactory.GetRootProjectFile(String projectPath) [D:\scm\Licence\Licensing\PP.Licensing.PPLicenseManager\Client\Client.csproj]
    C:\Program Files (x86)\MSBuild\Microsoft\VisualStudio\v14.0\LightSwitch\v5.0\Microsoft.LightSwitch.Build.Tasks.targets(217,5): error MSB4018:    at Microsoft.LightSwitch.BuildTasks.Common.CommandLineBuildContainerFactory.Create(String cacheDirectorySubPath, VsExportProvisionScope scope, IEnumerable`1 inputStreams, IEnumerable`1 serviceStreams, String projectPath, IEnumerable`1 externalDataSources, TaskLoggingHelper log) [D:\scm\Licence\Licensing\PP.Licensing.PPLicenseManager\Client\Client.csproj]
    C:\Program Files (x86)\MSBuild\Microsoft\VisualStudio\v14.0\LightSwitch\v5.0\Microsoft.LightSwitch.Build.Tasks.targets(217,5): error MSB4018:    at Microsoft.LightSwitch.BuildTasks.Common.BuildTaskBase.EnsureCommandLineBuildContainer() [D:\scm\Licence\Licensing\PP.Licensing.PPLicenseManager\Client\Client.csproj]
    C:\Program Files (x86)\MSBuild\Microsoft\VisualStudio\v14.0\LightSwitch\v5.0\Microsoft.LightSwitch.Build.Tasks.targets(217,5): error MSB4018:    at Microsoft.LightSwitch.BuildTasks.CodeGen.LSGeneratorsTask.RunGeneratorsInNonIdeScenario() [D:\scm\Licence\Licensing\PP.Licensing.PPLicenseManager\Client\Client.csproj]
    C:\Program Files (x86)\MSBuild\Microsoft\VisualStudio\v14.0\LightSwitch\v5.0\Microsoft.LightSwitch.Build.Tasks.targets(217,5): error MSB4018:    at Microsoft.LightSwitch.BuildTasks.CodeGen.LSGeneratorsTask.ExecuteCore() [D:\scm\Licence\Licensing\PP.Licensing.PPLicenseManager\Client\Client.csproj]
    C:\Program Files (x86)\MSBuild\Microsoft\VisualStudio\v14.0\LightSwitch\v5.0\Microsoft.LightSwitch.Build.Tasks.targets(217,5): error MSB4018:    at Microsoft.LightSwitch.BuildTasks.CodeGen.LSResourceGeneratorsTask.ExecuteCore() [D:\scm\Licence\Licensing\PP.Licensing.PPLicenseManager\Client\Client.csproj]
    C:\Program Files (x86)\MSBuild\Microsoft\VisualStudio\v14.0\LightSwitch\v5.0\Microsoft.LightSwitch.Build.Tasks.targets(217,5): error MSB4018:    at Microsoft.LightSwitch.BuildTasks.Common.BuildTask.Execute() [D:\scm\Licence\Licensing\PP.Licensing.PPLicenseManager\Client\Client.csproj]
    C:\Program Files (x86)\MSBuild\Microsoft\VisualStudio\v14.0\LightSwitch\v5.0\Microsoft.LightSwitch.Build.Tasks.targets(217,5): error MSB4018:    at Microsoft.Build.BackEnd.TaskExecutionHost.Microsoft.Build.BackEnd.ITaskExecutionHost.Execute() [D:\scm\Licence\Licensing\PP.Licensing.PPLicenseManager\Client\Client.csproj]
    C:\Program Files (x86)\MSBuild\Microsoft\VisualStudio\v14.0\LightSwitch\v5.0\Microsoft.LightSwitch.Build.Tasks.targets(217,5): error MSB4018:    at Microsoft.Build.BackEnd.TaskBuilder.<ExecuteInstantiatedTask>d__26.MoveNext() [D:\scm\Licence\Licensing\PP.Licensing.PPLicenseManager\Client\Client.csproj]


    "D:\scm\Licence\Licensing\pplicense.sln" (default target) (1) ->
    "D:\scm\Licence\Licensing\PP.Licensing.PPLicenseManager\PP.Licensing.PPLicense.lsxproj" (default target) (7) ->
    "D:\scm\Licence\Licensing\PP.Licensing.PPLicenseManager\Server\Server.csproj" (default target) (10:2) ->
    (LSSvcGenerators target) -> 
      C:\Program Files (x86)\MSBuild\Microsoft\VisualStudio\v14.0\LightSwitch\v5.0\Microsoft.LightSwitch.Build.Tasks.targets(168,5): error MSB4018: The "LSSvcGeneratorsTask" task failed unexpectedly. [D:\scm\Licence\Licensing\PP.Licensing.PPLicenseManager\Server\Server.csproj]
    C:\Program Files (x86)\MSBuild\Microsoft\VisualStudio\v14.0\LightSwitch\v5.0\Microsoft.LightSwitch.Build.Tasks.targets(168,5): error MSB4018: System.IO.FileNotFoundException: Unable to find root project file at this location: {0} [D:\scm\Licence\Licensing\PP.Licensing.PPLicenseManager\Server\Server.csproj]
    C:\Program Files (x86)\MSBuild\Microsoft\VisualStudio\v14.0\LightSwitch\v5.0\Microsoft.LightSwitch.Build.Tasks.targets(168,5): error MSB4018: File name: 'D:\scm\Licence\Licensing\PP.Licensing.PPLicenseManager' [D:\scm\Licence\Licensing\PP.Licensing.PPLicenseManager\Server\Server.csproj]
    C:\Program Files (x86)\MSBuild\Microsoft\VisualStudio\v14.0\LightSwitch\v5.0\Microsoft.LightSwitch.Build.Tasks.targets(168,5): error MSB4018:    at Microsoft.LightSwitch.BuildTasks.Common.CommandLineBuildContainerFactory.GetRootProjectFile(String projectPath) [D:\scm\Licence\Licensing\PP.Licensing.PPLicenseManager\Server\Server.csproj]
    C:\Program Files (x86)\MSBuild\Microsoft\VisualStudio\v14.0\LightSwitch\v5.0\Microsoft.LightSwitch.Build.Tasks.targets(168,5): error MSB4018:    at Microsoft.LightSwitch.BuildTasks.Common.CommandLineBuildContainerFactory.Create(String cacheDirectorySubPath, VsExportProvisionScope scope, IEnumerable`1 inputStreams, IEnumerable`1 serviceStreams, String projectPath, IEnumerable`1 externalDataSources, TaskLoggingHelper log) [D:\scm\Licence\Licensing\PP.Licensing.PPLicenseManager\Server\Server.csproj]
    C:\Program Files (x86)\MSBuild\Microsoft\VisualStudio\v14.0\LightSwitch\v5.0\Microsoft.LightSwitch.Build.Tasks.targets(168,5): error MSB4018:    at Microsoft.LightSwitch.BuildTasks.Common.BuildTaskBase.EnsureCommandLineBuildContainer() [D:\scm\Licence\Licensing\PP.Licensing.PPLicenseManager\Server\Server.csproj]
    C:\Program Files (x86)\MSBuild\Microsoft\VisualStudio\v14.0\LightSwitch\v5.0\Microsoft.LightSwitch.Build.Tasks.targets(168,5): error MSB4018:    at Microsoft.LightSwitch.BuildTasks.CodeGen.LSGeneratorsTask.RunGeneratorsInNonIdeScenario() [D:\scm\Licence\Licensing\PP.Licensing.PPLicenseManager\Server\Server.csproj]
    C:\Program Files (x86)\MSBuild\Microsoft\VisualStudio\v14.0\LightSwitch\v5.0\Microsoft.LightSwitch.Build.Tasks.targets(168,5): error MSB4018:    at Microsoft.LightSwitch.BuildTasks.CodeGen.LSGeneratorsTask.ExecuteCore() [D:\scm\Licence\Licensing\PP.Licensing.PPLicenseManager\Server\Server.csproj]
    C:\Program Files (x86)\MSBuild\Microsoft\VisualStudio\v14.0\LightSwitch\v5.0\Microsoft.LightSwitch.Build.Tasks.targets(168,5): error MSB4018:    at Microsoft.LightSwitch.BuildTasks.CodeGen.LSSvcGeneratorsTask.ExecuteCore() [D:\scm\Licence\Licensing\PP.Licensing.PPLicenseManager\Server\Server.csproj]
    C:\Program Files (x86)\MSBuild\Microsoft\VisualStudio\v14.0\LightSwitch\v5.0\Microsoft.LightSwitch.Build.Tasks.targets(168,5): error MSB4018:    at Microsoft.LightSwitch.BuildTasks.Common.BuildTask.Execute() [D:\scm\Licence\Licensing\PP.Licensing.PPLicenseManager\Server\Server.csproj]
    C:\Program Files (x86)\MSBuild\Microsoft\VisualStudio\v14.0\LightSwitch\v5.0\Microsoft.LightSwitch.Build.Tasks.targets(168,5): error MSB4018:    at Microsoft.Build.BackEnd.TaskExecutionHost.Microsoft.Build.BackEnd.ITaskExecutionHost.Execute() [D:\scm\Licence\Licensing\PP.Licensing.PPLicenseManager\Server\Server.csproj]
    C:\Program Files (x86)\MSBuild\Microsoft\VisualStudio\v14.0\LightSwitch\v5.0\Microsoft.LightSwitch.Build.Tasks.targets(168,5): error MSB4018:    at Microsoft.Build.BackEnd.TaskBuilder.<ExecuteInstantiatedTask>d__26.MoveNext() [D:\scm\Licence\Licensing\PP.Licensing.PPLicenseManager\Server\Server.csproj]

        0 Warning(s)
        2 Error(s)

    Any ideas what might be going wrong?

    Thanks

    Ian


    .Net Web Application: Getting MS Build Error for one of the project in one specific machine and below are the error details. Can any one pleae help..!!!

    $
    0
    0

    3>C:\Program Files (x86)\MSBuild\12.0\bin\Microsoft.Common.CurrentVersion.targets(4429,5): error MSB3073: The command "REM Create a NuGet package for this project and place the .nupkg file in the project's output directory.

    3>C:\Program Files (x86)\MSBuild\12.0\bin\Microsoft.Common.CurrentVersion.targets(4429,5): error MSB3073: REM If you see this in Visual Studio's Error List window, check the Output window's Build tab for the actual error.

    3>C:\Program Files (x86)\MSBuild\12.0\bin\Microsoft.Common.CurrentVersion.targets(4429,5): error MSB3073: ECHO Building NuGet package in Post-Build event...

    3>C:\Program Files (x86)\MSBuild\12.0\bin\Microsoft.Common.CurrentVersion.targets(4429,5): error MSB3073: PowerShell -NoProfile -ExecutionPolicy Bypass -Command "& 'C:\Users\pb5019510\Desktop\cer\E1_SDK2.4_TillSprint25\TDC.WEB\PostBuildScripts\BuildNewPackage-RanAutomatically.ps1' -ProjectFilePath 'C:\Users\pb5019510\Desktop\cer\E1_SDK2.4_TillSprint25\TDC.WEB\TDC.WEB.csproj' -OutputDirectory 'C:\Users\pb5019510\Desktop\cer\E1_SDK2.4_TillSprint25\TDC.WEB\bin\' -Configuration 'Debug' -Platform 'AnyCPU' -SolutionFilePath 'C:\Users\pb5019510\Desktop\cer\E1_SDK2.4_TillSprint25\'"

    3>C:\Program Files (x86)\MSBuild\12.0\bin\Microsoft.Common.CurrentVersion.targets(4429,5): error MSB3073:

    3>C:\Program Files (x86)\MSBuild\12.0\bin\Microsoft.Common.CurrentVersion.targets(4429,5): error MSB3073:

    3>PowerShell -NoProfile -ExecutionPolicy Bypass -Command "& 'C:\Users\pb5019510\Desktop\cer\E1_SDK2.4_TillSprint25\packages\AEDC_Build_NuGet_Packager.1.1\content\PostBuildScripts\CopyScriptsIfNotPresent.ps1' -SolutionDirPath 'C:\Users\pb5019510\Desktop\cer\E1_SDK2.4_TillSprint25\' -ProjectDirPath 'C:\Users\pb5019510\Desktop\cer\E1_SDK2.4_TillSprint25\TDC.WEB\' -Version '1.1'"

    3>C:\Program Files (x86)\MSBuild\12.0\bin\Microsoft.Common.CurrentVersion.targets(4429,5): error MSB3073: REM Create a NuGet package for this project and place the .nupkg file in the project's output directory.

    3>C:\Program Files (x86)\MSBuild\12.0\bin\Microsoft.Common.CurrentVersion.targets(4429,5): error MSB3073: REM If you see this in Visual Studio's Error List window, check the Output window's Build tab for the actual error.

    3>C:\Program Files (x86)\MSBuild\12.0\bin\Microsoft.Common.CurrentVersion.targets(4429,5): error MSB3073: ECHO Building NuGet package in Post-Build event...

    3>C:\Program Files (x86)\MSBuild\12.0\bin\Microsoft.Common.CurrentVersion.targets(4429,5): error MSB3073: PowerShell -NoProfile -ExecutionPolicy Bypass -Command "& 'C:\Users\pb5019510\Desktop\cer\E1_SDK2.4_TillSprint25\TDC.WEB\PostBuildScripts\BuildNewPackage-RanAutomatically.ps1' -ProjectFilePath 'C:\Users\pb5019510\Desktop\cer\E1_SDK2.4_TillSprint25\TDC.WEB\TDC.WEB.csproj' -OutputDirectory 'C:\Users\pb5019510\Desktop\cer\E1_SDK2.4_TillSprint25\TDC.WEB\bin\' -Configuration 'Debug' -Platform 'AnyCPU' -SolutionFilePath 'C:\Users\pb5019510\Desktop\cer\E1_SDK2.4_TillSprint25\'"" exited with code 1.

    4>------ Build started: Project: TDCCloudService, Configuration: Debug Any CPU ------

    ========== Build: 3 succeeded, 1 failed, 0 up-to-date, 0 skipped ==========

    Compact Framework Build takes long time

    $
    0
    0

     

    I have a VS 2008 compact framework project targeting Windows Mobile 5.0 that takes a long time to build. I ran a build with full verbosity and here are the the times.

     

    Task Performance Summary:

    0 ms Delete 1 calls

    0 ms CreateProperty 1 calls

    0 ms AssignTargetPath 5 calls

    0 ms ConvertToAbsolutePath 1 calls

    1 ms RemoveDuplicates 2 calls

    1 ms FindUnderPath 5 calls

    1 ms AssignCulture 1 calls

    1 ms FindAppConfigFile 1 calls

    1 ms GetFrameworkPath 1 calls

    1 ms MakeDir 1 calls

    1 ms Message 3 calls

    1 ms GetDeviceFrameworkPath 1 calls

    2 ms ReadLinesFromFile 1 calls

    2 ms CreateCSharpManifestResourceName 1 calls

    10 ms ResolveAssemblyReference 1 calls

    13 ms GenerateResource 1 calls

    84 ms AddHighDPIResource 1 calls

    112 ms Copy 6 calls

    295 ms Csc 1 calls

    433809 ms PlatformVerificationTask 1 calls

     

    Don't know if this is the best area to post this but why is this platform verification task taking so long? This seems to be the only info in the build output:

     

    Target "PlatformVerificationTask" in file "C:\Windows\Microsoft.NET\Framework\v3.5\Microsoft.CompactFramework.Common.targets":

    Task "PlatformVerificationTask"

    Done executing task "PlatformVerificationTask".

    Done building target "PlatformVerificationTask" in project "SkillManager.csproj".

     

    Maybe I can disable this task? Any Ideas?

     

     

     

    How To MSBuild Standalone, Portable, and SxS Installation?

    $
    0
    0


    Hello,

    I would like to install MSBuild, (VisualCPPBuildTools_Full.exe) - to a computer - in order to compile native C++ code, (or even with .NET if possible).

    1. Can CPP Build Tools be installed onto a portable drive? USB stick? Can this be installed without hitting the registry?
    2. How can MSBuild / CPP Build Tools be installed to a different drive?  visualcppbuildtools_full.exe /CustomInstallPath does not appear to work - regardless of the folder specified - and always installs to the %ProgramFiles(x86)% folder.  What is the exact syntax for this command?

    Thanks!

    Elika


    Elika Kohen


    MSBuild Environment Variables For Batch Files

    $
    0
    0

    Hello,

    Could some kindly assist with this. Hopefully should be a relatively easy query.

    In setting up some of my build definitions, I'm able to pass various MSBuild environment variables through a powershell script which is integrated in the build definition, either as pre or post build tasks. Some of the typical environment variables I've used are:

    $Env: TF_BUILD_SOURCESDIRECTORY, $Env: TF_BUILD_BUILDNUMBER, $Env: TF_BUILD_BUILDDEFINITIONNAME

    I however want to do similar with some windows batch files which are required to run some tests, but I am struggling to find the corresponding MSBuild variables, which can be incorporated into a Windows batch file. Could anyone assist please, or point me in the direction of a corresponding variable list which can be used in batch filse?

    Thank you

    Build Server Isuues ASP.NET 5 MVC 6

    $
    0
    0

    Hi,

    Im using TFS2015.2  and the visual studio 2015.2 , I'm using xaml builds , the project is built on the ASP.net 5 and Mvc 6 , I'm having this on the error , when trying to build "Dnx Runtime package needs to be installed". when I run on my local, it works fine, but when I use the build server to build, the error pops up. I 've also installed visual studio 2015.2 on the build server, because the build server doesn't have the updates option on build server in my organization, I'm unable to update the dnx , dnvm versions. Is there any ways we overcome this issue without the updates features. I need to fix this issue ASAP. Please help in solving the issue on the build server.

    Error:C:\Program
    Files (x86)\MSBuild\Microsoft\VisualStudio\v14.0\DNX\Microsoft.DNX.targets  , 
    "Dnx Runtime package needs to be installed", it cannot find DNX runtime ....

    Thanks,


    info2m


    info2m

    MSBuild.exe is not recognized under Visual Studio Code Terminal.

    $
    0
    0
    Hello, how can I compile C# code under Visual Studio Code 2015? I've installed extension for C# VS Code and installed MSBuild.exe. Thanks.

    CL.exe error -1073740940 (C0000374)

    $
    0
    0

    I am in the process of updating our codebase from Visual Studio 2012 to Visual Studio 2015.  I am getting the following compiler errors.

    C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\V140\Microsoft.CppCommon.targets(356,5): error MSB6006: "CL.exe" exited with code -1073740940.

    Native android Application error problem

    $
    0
    0

     very first time i am using visual C++ cross platform for the android mobile app development,but i am getting two errors while creating the native android application.i m posting my error list.please help me to resolve this issue thank u.

    Error    MSB4062    The "ClangCompile" task could not be loaded from the assembly C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\V140\Microsoft.Build.CppTasks.Common.dll.  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.    Android1.NativeActivity    C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\V140\Microsoft.Cpp.Clang.targets   151  


    Error        Unable to open file D:\computers\Work Space\C++ Visual Studio\Android1\x86\Debug\libAndroid1.so.recipe because 2    Android1.Packaging    C:\Program Files (x86)\MSBuild\Microsoft\MDD\Android\V140\Android.Common.targets   218    

    Viewing all 2763 articles
    Browse latest View live


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