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

Visual Studio suspends other processes during building projects containing CUDA code

$
0
0

Hello everyone,

When I try to build C++ projects containing CUDA modules in Visual Studio, system freezes. After some investigation and monitoring, I found out that almost all of the processes get suspended (Even devenv.exe and msbuild.exe themselves). Though it halts the processes, I managed to get things running again by resuming their processes from System Monitor. However, the build process stay as it was and it doesn't proceed nor get aborted. So, I end up killing devenv.exe.

When I ran Visual Studio as an Administrator, it froze all of the processes, so I had to restart the computer.

So the problem may be caused by Visual Studio, though at first I suspected that CUDA Compiler might be the source of the problem. Nonetheless, they are both responsible for this situation. They can't cooperate properly :)

I have tried to compile large-sized C++ projects (with no CUDA) using Visual Studio and it has worked very well. I have compiled CUDA code using nvcc.exe and it compiled without any problem. But even with small-sized projects containing CUDA code, building has failed and computer has crashed.

It is important to note that, in a few cases, the freezing situation has occurred when trying to clean the project.

It would be great if anyone could help me solve this issue.

1) First, I want to know for sure that this is the Visual Studio that causes mass-suspension of processes. How can I know?

2) Second, I want to find a way to solve the problem.

Also, it is important to note that I am using Visual Studio 2013 with Update 3, I have CUDA 6.5 with latest graphics driver installed, I'm running them on Windows 8.1 Update 2, and my GPU is Quadro K1100M.

Thank you in advance.


how can i tell if a msbuild target is getting invoked?

$
0
0
I have tried to incorporate CodeAssassin into VB.NET Web Application project for the purpose of building all transformed web.config during the build. I want to be able to build the environment specific transforms during my continuous integration build up front.  I want a web.config built for each target environment (example: DEV, QA, UAT and PROD).

I have web.<env>.config transform files that resides in the same folder as the original web.config.  When I build the project it produces a WebApplication1.dll.config config file in the bin folder, but I do not get any .transform configurations. When I install the CodeAssassin targets using Nuget, it creates the following .targets file in the project folder structure:



  

    <UsingTask TaskName="TransformXml"
                 AssemblyFile="$(MSBuildExtensionsPath32)\Microsoft\VisualStudio\v$(VisualStudioVersion)\Web\Microsoft.Web.Publishing.Tasks.dll" />
    
      <Target Name="TransformAllWebConfigTransformFiles"
              Condition="'$(WebProjectOutputDir)'!=''"
              BeforeTargets="Compile">
    
        <ItemGroup>
          <WebConfigTransformFile Include="@(None)" Condition="'$([System.Text.RegularExpressions.Regex]::IsMatch(%(Filename),&quot;(?i)^web\.&quot;))' == true and '%(Extension)'=='.config'" />
          <WebConfigTransformFile Include="@(Content)" Condition="'$([System.Text.RegularExpressions.Regex]::IsMatch(%(Filename),&quot;(?i)^web\.&quot;))' == true and '%(Extension)'=='.config'" />
        </ItemGroup>
    
        <TransformXml Source="web.config" Destination="%(WebConfigTransformFile.Identity).transformed" Transform="@(WebConfigTransformFile)"
                      Condition="'@(WebConfigTransformFile)'!=''" />
    
        <CreateItem Include="%(WebConfigTransformFile.Identity).transformed">
          <Output TaskParameter="Include" ItemName="Content" />
        </CreateItem>
    
      </Target>

I have run diagnostic output on the build and it does not even appear that the targets are getting called. How can I assure that these targets get called to perform the desired transforms.

I have read this post (http://stackoverflow.com/questions/12683927/codeassassin-configtransform-for-of-arbitrarily-named-config-files) and it seems to imply that I have to change the references from web.config to be specific to my application name (meaning that in the case on my web application called WebApplication1, it creates a "web.config in the bin folder called WebApplication1.dll.config), but it does not even appear that the target is getting called. How to I get this incorporated into my build process?

How to add work item iteration value as a property to the build?

$
0
0
Is there a convenient/optimal way that the Iteration value (in this case all work items completed for the build contain the same iteration value) located on the work items can be associated as a property within the build? The purpose is mainly for support and troubleshooting to help quickly identify which scrum iteration we are testing/debugging if a problem arises in one of the environments (QA, Stage, Dev, etc).

Enigmatic One

Error occurred while restoring NuGet packages: Error loading type library/DLL. (Exception from HRESULT: 0x80029C4A (TYPE_E_CANTLOADLIBRARY))

$
0
0

Hello,

I am trying to build a solution that is checked out from Subversion. I opened the solution on a newly installed Visual Studio 2013. The solution has around 17 projects. The solution has Packages folder in it containing packages. When I try to build the solution all of failed. In the output window I see the error "Error occurred while restoring NuGet packages: Error loading type library/DLL. (Exception from HRESULT: 0x80029C4A (TYPE_E_CANTLOADLIBRARY))". I see that the Nuget Package Manager that came installed with VS 2013 has version 2.8.50313.46. I made sure that the package manager settings has the both the options "Allow NuGet to download missing packages" checked. I am new to VS 2013 and I don't have any clue or help from online forums. Please help me solve this.

cl : Command line error D8003: missing source filename

$
0
0

Hi,

I've reviewed all the other threads related to this issue, so I wanted to add some additional information that I'm seeing related to this.  I think this might be related to a backslash issue or path length issue.  In the project C/C++ -> General -> Additional Include Directories property I have the following (I added the newlines for readability):

      <AdditionalIncludeDirectories>$(ProjectDir)..\..\HostAPI;
$(ProjectDir)..\..\CommonAPI;
$(ProjectDir)..\..\..\..\3rdParty\pthread\include;
$(ProjectDir)..\..\..\..\os.api;
$(ProjectDir)..\..\..\..\os.api\libSuperIPC-CPP;
$(ProjectDir)..\..\..\..\3rdParty\protobuf-2.5.0\include;
$(ProjectDir)..\..\CommonAPI\libNotification;
$(ProjectDir)\..\ticketData;
$(ProjectDir)\..\common;
$(ProjectDir)\..\;
$(ProjectDir)\;                 <---- notice the trailing slash here.
$(ProjectDir)\..\..\..\include\super;
$(ProjectDir)\..\..\..\libHostProtos;
%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>

The ProjectDir macro also contains a trailing slash (i.e. E:\project\kh-dev\BGP\dev\OS\Libraries\HostAPI\libUltimateDevGamePlayMgrClient\)

When I try to build the project either from within visual studio or using the msbuild command line I get the following output (again I added newlines for readability)

  C:\Program Files (x86)\Microsoft Visual Studio 12.0\VC\bin\x86_amd64\CL.exe
 /c
 /I"E:\project\kh-dev\BGP\dev\OS\Libraries\HostAPI\libUltimateDevGamePlayMgrClient\..\..\HostAPI"
 /I"E:\project\kh-dev\BGP\dev\OS\Libraries\HostAPI\libUltimateDevGamePlayMgrClient\..\..\CommonAPI"
 /I"E:\project\kh-dev\BGP\dev\OS\Libraries\HostAPI\libUltimateDevGamePlayMgrClient\..\..\..\..\3rdParty\pthread\include"
 /I"E:\project\kh-dev\BGP\dev\OS\Libraries\HostAPI\libUltimateDevGamePlayMgrClient\..\..\..\..\os.api"
 /I"E:\project\kh-dev\BGP\dev\OS\Libraries\HostAPI\libUltimateDevGamePlayMgrClient\..\..\..\..\os.api\libSuperIPC-CPP"
 /I"E:\project\kh-dev\BGP\dev\OS\Libraries\HostAPI\libUltimateDevGamePlayMgrClient\..\..\..\..\3rdParty\protobuf-2.5.0\include"
 /I"E:\project\kh-dev\BGP\dev\OS\Libraries\HostAPI\libUltimateDevGamePlayMgrClient\..\..\CommonAPI\libNotification"
 /I"E:\project\kh-dev\BGP\dev\OS\Libraries\HostAPI\libUltimateDevGamePlayMgrClient\\..\ticketData"
 /I"E:\project\kh-dev\BGP\dev\OS\Libraries\HostAPI\libUltimateDevGamePlayMgrClient\\..\common"
 /I"E:\project\kh-dev\BGP\dev\OS\Libraries\HostAPI\libUltimateDevGamePlayMgrClient\\..\\"
 /I"E:\project\kh-dev\BGP\dev\OS\Libraries\HostAPI\libUltimateDevGamePlayMgrClient\\\"  <--- NOTICE the three backslashes now!!!!
 /I"E:\project\kh-dev\BGP\dev\OS\Libraries\HostAPI\libUltimateDevGamePlayMgrClient\\..\..\..\include\super"
 /I"E:\project\kh-dev\BGP\dev\OS\Libraries\HostAPI\libUltimateDevGamePlayMgrClient\\..\..\..\libHostProtos"
 /Zi /nologo /W3 /WX- /sdl /Od /D WIN32 /D _DEBUG /D _WINDOWS /D _SCL_SECURE_NO_WARNINGS /D _UNICODE /D UNICODE /Gm- /EHsc /RTC1 /MDd /GS /fp:precise /Zc:wchar_t /Zc:forScope /Fo"x64\Debug\\" /Fd"x64\Debug\vc120.pdb" /Gd /TP /errorReport:queue UltimateDevGamePlayMgrClient.cpp
cl : Command line error D8003: missing source filename [E:\project\kh-dev\BGP\dev\OS\Libraries\HostAPI\libUltimateDevGamePlayMgrClient\libUltimateDevGamePlayMgrClient.vcxproj]

So the big thing I noticed was that it is magically adding an additional backslash.  So I also tried the same project using a shorter project path, and It does seem to work now, and I don't see the extra back-slash.  I also don't see the extra double quotes on each of the paths.

  C:\Program Files (x86)\Microsoft Visual Studio 12.0\VC\bin\x86_amd64\CL.exe
 /c
 /Ie:\khdev\dev\OS\Libraries\HostAPI\libUltimateDevGamePlayMgrClient\..\..\HostAPI
 /Ie:\khdev\dev\OS\Libraries\HostAPI\libUltimateDevGamePlayMgrClient\..\..\CommonAPI
 /Ie:\khdev\dev\OS\Libraries\HostAPI\libUltimateDevGamePlayMgrClient\..\..\..\..\3rdParty\pthread\include
 /Ie:\khdev\dev\OS\Libraries\HostAPI\libUltimateDevGamePlayMgrClient\..\..\..\..\os.api
 /I"e:\khdev\dev\OS\Libraries\HostAPI\libUltimateDevGamePlayMgrClient\..\..\..\..\os.api\libSuperIPC-CPP"
 /I"e:\khdev\dev\OS\Libraries\HostAPI\libUltimateDevGamePlayMgrClient\..\..\..\..\3rdParty\protobuf-2.5.0\include"
 /Ie:\khdev\dev\OS\Libraries\HostAPI\libUltimateDevGamePlayMgrClient\..\..\CommonAPI\libNotification
 /Ie:\khdev\dev\OS\Libraries\HostAPI\libUltimateDevGamePlayMgrClient\\..\ticketData
 /Ie:\khdev\dev\OS\Libraries\HostAPI\libUltimateDevGamePlayMgrClient\\..\common
 /Ie:\khdev\dev\OS\Libraries\HostAPI\libUltimateDevGamePlayMgrClient\\..\
 /Ie:\khdev\dev\OS\Libraries\HostAPI\libUltimateDevGamePlayMgrClient\\    <---- no extra backslash here. 
 /Ie:\khdev\dev\OS\Libraries\HostAPI\libUltimateDevGamePlayMgrClient\\..\..\..\include\super
 /Ie:\khdev\dev\OS\Libraries\HostAPI\libUltimateDevGamePlayMgrClient\\..\..\..\libHostProtos
 /Zi /nologo /W3 /WX- /sdl /Od /D WIN32 /D _DEBUG /D _WINDOWS /D _SCL_SECURE_NO_WARNINGS /D _UNICODE /D UNICODE /Gm- /EHsc /RTC1 /MDd /GS /fp:precise /Zc:wchar_t /Zc:forScope /Fo"x64\Debug\\" /Fd"x64\Debug\vc120.pdb" /Gd /TP /errorReport:queue UltimateDevGamePlayMgrClient.cpp
  UltimateDevGamePlayMgrClient.cpp

If anyone knows how to fix this, or can explain the odd behavior, I would appreciate it.

-Kevin

VS2013 solution builds w/i VisStudio, but not with MSBuild from cmd line.

$
0
0

My WPF solution builds as expected w/i VisStudio 2013.

When I try to build from the command line:
MSBuild.exe .\EMOTM.sln  /p:Configuration=DEBUG /property:WarningLevel=1 /t:BUILD

I get the error:

"C:\work\BitBucket\emotmtimer\EMOTM.sln" (BUILD target) (1) ->
"C:\work\BitBucket\emotmtimer\EMOTM\EMOTM.csproj" (default target) (2) ->
(MarkupCompilePass1 target) ->
  C:\work\BitBucket\emotmtimer\EMOTM\MainWindow.xaml(2,9): error MC3074: The tag 'MetroWindow' does not exist in XML namespace 'clr-n
amespace:MahApps.Metro.Controls;assembly=MahApps.Metro'. Line 2 Position 9. [C:\work\BitBucket\emotmtimer\EMOTM\EMOTM.csproj]


What is VisStudio doing to make the solution build that MSBuild is not?

 

EditBin Dependencies

$
0
0

Hi,

I am planning to use EditBin and DumpBin exe as a part of my Build process in teamCity. I am not planning to to install VS 2010 on the build agent.

Just wanted to check if these exectable can be used without installing VS on build agent. If not, what all do I need to install to make it working.

Thanks.

Unable to select 64-bit ToolPlatform in build configuration

$
0
0

Hi all,

We have a build server which builds our software and runs our unit tests. Mostly it works and is helpful to our team but we're unable to run certain tests which must run as 64-bit processes (because they call on a 64-bit DLL). For some reason the test process is 32-bit. These tests run fine on our development machines in VisualStudio but not on the build server.

When I edit the build definition in VisualStudio, under the build process parameters - advanced, I see MSBuild Platform but this can only be set to Auto or X86 (dropdown selection). The build itself is set to configuration Any CPU. How can I tell MSBuild to run my unit tests in a 64-bit process? 

The build server has both vstest.executionengine.exe and vstest.executionengine-86.exe in C:\Program Files (x86)\Microsoft Visual Studio 12.0\Common7\IDE\CommonExtensions\Microsoft\TestWindow. 

The build server runs Windows Server 2012. We use VisualStudio 2013 and TFS 2010 (hoping to switch over to TFS 2013 shortly).

Any advice appreciated. We'd really like to get all our tests fully automated.

-- Carl


Dirca_checkfx. return value 3 on Windows XP SP3

$
0
0

Hello,

I've created a MSI with help of a setup project. Installation runs smoothly on 2008, 7 and 2012 but on Windows XP SP3 I'm not able to install. In the MSI log I see: Dirca_checkfx. return value 3

Please advise on what to do.

Thanks in advance.

Kind regards,

José

Note: I would not mind deleting some checks from the MSI manually if there is no other option.


RdlCompile fails without details.

$
0
0

We have upgraded from VS2010 to VS2012 and started experiencing sporadic issues with RdlCompile. The build fails, in almost 1 out of 5 times, with errors describing that certain .DLLs could not be found. Further analysis (including enabling diagnostic level logging) reveals that RdlCompile fails without any errors, which causes cascade issues with all other projects.

I have found similar issues online, where the cause is believed to be concurrent builds. I have set parallel builds to 1, however this issue still remains. Other blogs suggest that I remove the .RDLC files, compile the project, then include them back. This is not a feasible option in my case since there are over 400 .RDLC files and the solution is dependend on them.

It has been noticed that when switching back to VS2010 this issue does not occur.

Logs (edited):

Using "RdlCompile" task from assembly "Microsoft.ReportViewer.WebForms, Version=11.0.0.0, Culture=neutral, PublicKeyToken=89845dcd8080cc91".
Task "RdlCompile" (TaskId:4275)
  Task Parameter:
      Sources=
          Reports\XXX.rdlc
          <433 other .rdlc files>
          Reports\XXY.rdlc
          Reports\XXZ.rdlc (TaskId:4275)
  Task Parameter:StateFile=obj\Debug\RdlCompile.cache (TaskId:4275)
  Task Parameter:TimeStampFile=obj\Debug\RdlCompile.compiled (TaskId:4275)
Done executing task "RdlCompile" -- FAILED. (TaskId:4275)
Done building target "RunRdlCompiler" in project "QQQ.csproj" -- FAILED.: (TargetId:6639)

Specs:

Visual Studio 2012 Premium

Version 11.0.51106.01 Update 1

Microsoft.ReportViewer.WebForms, Version=11.0.0.0

Thank you,

Leonardo Custodio

microsoft .net framework 4 extended

$
0
0
Is Microsoft. NET Framework 4.5.1 the same as  Microsoft. NET Framework 4 Extended? please advise, thank you

Tfs commands in build events gets corrupted on .NET version changes

$
0
0

Hi Folks

There is an issue with downgrading (in Visual Studio 2013 ultimate) from .Net v4.x to .Net v3.5. it mangles the "Build Events" -> "Post-build event command line" and makes the project not buildable.

Here's the scenario:

1. create a class project in .Net v4.x
2. right-click on your project name, select Build Events" -> "Post-build event command line" -> "Edit Post-build ..."

paste this into the text box:

echo.
echo
*NEVER OVERLAY *.configs on the SSRS server, *DONT DEPLOY THEM*, only
hand-edit those config file listed in AReadMe.cs (Microsoft takes care
of the details per version of SQL Server)
echo *More here: http://msdn.microsoft.com/en-us/library/bb630448.aspx
echo.
IF exist "c:\Program Files\Microsoft Visual Studio 10.0\Common7\IDE\PrivateAssemblies" ( echo. )
IF exist "c:\Program Files\Microsoft Visual Studio
10.0\Common7\IDE\PrivateAssemblies" ( echo Visual Studio 2010x64 exists )
IF
exist "c:\Program Files\Microsoft Visual Studio
10.0\Common7\IDE\PrivateAssemblies" ( copy "$(TargetDir)$(TargetName).*"
"c:\Program Files\Microsoft Visual Studio
10.0\Common7\IDE\PrivateAssemblies" )

IF exist "c:\Program Files (x86)\Microsoft Visual Studio 10.0\Common7\IDE\PrivateAssemblies" ( echo. )
IF
exist "c:\Program Files (x86)\Microsoft Visual Studio
10.0\Common7\IDE\PrivateAssemblies" ( echo Visual Studio 2010x86 exists )
IF
exist "c:\Program Files (x86)\Microsoft Visual Studio
10.0\Common7\IDE\PrivateAssemblies" ( copy "$(TargetDir)$(TargetName).*"
"c:\Program Files (x86)\Microsoft Visual Studio
10.0\Common7\IDE\PrivateAssemblies" )

IF exist "c:\Program Files\Microsoft Visual Studio 11.0\Common7\IDE\PrivateAssemblies" (
echo. )
IF exist "c:\Program Files\Microsoft Visual Studio 11.0\Common7\IDE\PrivateAssemblies" ( echo Visual Studio 2012x64 exists )
IF
exist "c:\Program Files\Microsoft Visual Studio
11.0\Common7\IDE\PrivateAssemblies" ( copy "$(TargetDir)$(TargetName).*"
"c:\Program Files\Microsoft Visual Studio
11.0\Common7\IDE\PrivateAssemblies" )

IF exist "c:\Program Files (x86)\Microsoft Visual Studio 11.0\Common7\IDE\PrivateAssemblies" ( echo. )
IF
exist "c:\Program Files (x86)\Microsoft Visual Studio
11.0\Common7\IDE\PrivateAssemblies" ( echo Visual Studio 2012x86 exists )
IF
exist "c:\Program Files (x86)\Microsoft Visual Studio
11.0\Common7\IDE\PrivateAssemblies" ( copy "$(TargetDir)$(TargetName).*"
"c:\Program Files (x86)\Microsoft Visual Studio
11.0\Common7\IDE\PrivateAssemblies" )

IF exist
"c:\Program Files\Microsoft Visual Studio 12.0\Common7\IDE\PrivateAssemblies" ( echo. )
IF exist "c:\Program Files\Microsoft Visual Studio 12.0\Common7\IDE\PrivateAssemblies" ( echo Visual Studio 2013x64 exists )
IF
exist "c:\Program Files\Microsoft Visual Studio
12.0\Common7\IDE\PrivateAssemblies" ( copy "$(TargetDir)$(TargetName).*"
"c:\Program Files\Microsoft Visual Studio
12.0\Common7\IDE\PrivateAssemblies" )

IF exist "c:\Program Files (x86)\Microsoft Visual Studio 12.0\Common7\IDE\PrivateAssemblies" ( echo. )
IF
exist "c:\Program Files (x86)\Microsoft Visual Studio
12.0\Common7\IDE\PrivateAssemblies" ( echo Visual Studio 2013x86 exists )
IF
exist "c:\Program Files (x86)\Microsoft Visual Studio
12.0\Common7\IDE\PrivateAssemblies" ( copy "$(TargetDir)$(TargetName).*"
"c:\Program Files (x86)\Microsoft Visual Studio
12.0\Common7\IDE\PrivateAssemblies" )

IF exist "c:\Program Files\Microsoft Visual Studio 13.0\Common7\IDE\PrivateAssemblies" ( echo. )
IF exist "c:\Program Files\Microsoft Visual Studio 13.0\Common7\IDE\PrivateAssemblies" ( echo Visual Studio 2014x64 exists )
IF
exist "c:\Program Files\Microsoft Visual Studio
13.0\Common7\IDE\PrivateAssemblies" ( copy "$(TargetDir)$(TargetName).*"
"c:\Program Files\Microsoft Visual Studio
13.0\Common7\IDE\PrivateAssemblies" )

IF exist "c:\Program Files (x86)\Microsoft Visual Studio 13.0\Common7\IDE\PrivateAssemblies" ( echo. )
IF
exist "c:\Program Files (x86)\Microsoft Visual Studio
13.0\Common7\IDE\PrivateAssemblies" ( echo Visual Studio 2014x86 exists )
IF exist "c:\Program Files (x86)\Microsoft Visual Studio 13.0\Common7\IDE\PrivateAssemblies" ( copy
"$(TargetDir)$(TargetName).*" "c:\Program Files (x86)\Microsoft Visual Studio 13.0\Common7\IDE\PrivateAssemblies" )

IF exist "c:\Program Files\Microsoft Visual Studio 14.0\Common7\IDE\PrivateAssemblies" ( echo. )
IF exist "c:\Program Files\Microsoft Visual Studio 14.0\Common7\IDE\PrivateAssemblies" ( echo Visual Studio 2015x64 exists )
IF
exist "c:\Program Files\Microsoft Visual Studio
14.0\Common7\IDE\PrivateAssemblies" ( copy "$(TargetDir)$(TargetName).*"
"c:\Program Files\Microsoft Visual Studio
14.0\Common7\IDE\PrivateAssemblies" )

IF exist "c:\Program Files (x86)\Microsoft Visual Studio 14.0\Common7\IDE\PrivateAssemblies" ( echo. )
IF
exist "c:\Program Files (x86)\Microsoft Visual Studio
14.0\Common7\IDE\PrivateAssemblies" ( echo Visual Studio 2015x86 exists )
IF
exist "c:\Program
Files (x86)\Microsoft Visual Studio 14.0\Common7\IDE\PrivateAssemblies"
( copy "$(TargetDir)$(TargetName).*" "c:\Program Files (x86)\Microsoft
Visual Studio 14.0\Common7\IDE\PrivateAssemblies" )
echo.
echo ** what Visual Studio thinks your environment should be ...**
echo.
echo TargetDir: "$(TargetDir)"
echo TargetName: "$(TargetName)"
echo DevEnvDir: "$(DevEnvDir)"
echo.
copy "$(TargetDir)$(TargetName).*" "$(DevEnvDir)PrivateAssemblies\"
echo.
net stop "SQL Server Reporting Services (MSSQLSERVER)"
echo.
IF exist "C:\Program Files\Microsoft SQL Server\MSRS10.MSSQLSERVER\Reporting Services\ReportServer\bin\" ( echo. )
IF exist "C:\Program Files\Microsoft SQL
Server\MSRS10.MSSQLSERVER\Reporting Services\ReportServer\bin\" ( echo SQL Server 2008-MSRS10 exists )
IF
exist "C:\Program Files\Microsoft SQL
Server\MSRS10.MSSQLSERVER\Reporting Services\ReportServer\bin\" ( copy
"$(TargetDir)$(TargetName).*" "C:\Program Files\Microsoft SQL
Server\MSRS10.MSSQLSERVER\Reporting Services\ReportServer\bin\" )

IF exist "C:\Program Files\Microsoft SQL Server\MSRS11.MSSQLSERVER\Reporting Services\ReportServer\bin\" ( echo. )
IF
exist "C:\Program Files\Microsoft SQL
Server\MSRS11.MSSQLSERVER\Reporting Services\ReportServer\bin\" ( echo
SQL Server 2012-MSRS11 exists )
IF
exist "C:\Program Files\Microsoft SQL
Server\MSRS11.MSSQLSERVER\Reporting Services\ReportServer\bin\" ( copy
"$(TargetDir)$(TargetName).*" "C:\Program Files\Microsoft SQL
Server\MSRS11.MSSQLSERVER\Reporting Services\ReportServer\bin\" )

IF exist "C:\Program Files\Microsoft SQL Server\MSRS12.MSSQLSERVER\Reporting Services\ReportServer\bin\" ( echo. )
IF
exist "C:\Program Files\Microsoft SQL
Server\MSRS12.MSSQLSERVER\Reporting Services\ReportServer\bin\" ( echo
SQL Server 2014-MSRS12 exists )
IF
exist "C:\Program Files\Microsoft SQL
Server\MSRS12.MSSQLSERVER\Reporting Services\ReportServer\bin\" ( copy
"$(TargetDir)$(TargetName).*" "C:\Program Files\Microsoft SQL
Server\MSRS12.MSSQLSERVER\Reporting Services\ReportServer\bin\" )

IF exist "C:\Program Files\Microsoft SQL Server\MSRS13.MSSQLSERVER\Reporting Services\ReportServer\bin\" ( echo. )
IF
exist "C:\Program Files\Microsoft SQL
Server\MSRS13.MSSQLSERVER\Reporting Services\ReportServer\bin\" ( echo
SQL Server 201x-MSRS13 exists )
IF
exist "C:\Program Files\Microsoft SQL
Server\MSRS13.MSSQLSERVER\Reporting Services\ReportServer\bin\" ( copy
"$(TargetDir)$(TargetName).*" "C:\Program Files\Microsoft SQL
Server\MSRS13.MSSQLSERVER\Reporting Services\ReportServer\bin\" )

IF exist "C:\Program Files\Microsoft SQL Server\MSRS14.MSSQLSERVER\Reporting Services\ReportServer\bin\" ( echo. )
IF
exist "C:\Program Files\Microsoft SQL
Server\MSRS14.MSSQLSERVER\Reporting Services\ReportServer\bin\" ( echo
SQL Server 201x-MSRS14 exists )
IF
exist "C:\Program Files\Microsoft SQL
Server\MSRS14.MSSQLSERVER\Reporting Services\ReportServer\bin\" ( copy
"$(TargetDir)$(TargetName).*" "C:\Program Files\Microsoft SQL
Server\MSRS14.MSSQLSERVER\Reporting Services\ReportServer\bin\" )
echo.
net start "SQL Server Reporting Services (MSSQLSERVER)"

3. Next, compile, it works fine (in .Net v4.x) and never breaks for me in v4.x.

4. Convert the project to .Net v3.5

5. Build again, notice how Build Events" -> "Post-build event command line" get corrupted (shows up as an error on the compile).

6. copy the script above back into "Post-build event command line"

7. things NO LONGER BUILDs in .Net v3.5 (or maybe 1 in 10 might build now, and using a "Clean" first)

8. clear out the script again and cut the script (above) into smaller pieces and paste, recompiling for each chunk pasted (everything works now?)

Could anyone substantiate this?

Rob
PS My environment is Visual Studio 2013 Ultimate

msbuild failing on win8.1 due to: invalid solution configuration "Debug|X64"

$
0
0

I have a windows 8.1 development machine, with VS2012. I build my solution using the command line msbuild tool. Up until yeseterday both command line and IDE  builds were succeeding. Yesterday I rebooted my machine and suddenly the command line build is failing. If I build in the IDE, it succeeds.

This is the error I am getting: "error MSB4126: The specified solution configuration "Debug|X64" is invalid. Please specify a valid solution configuration using the Configuration and Platform properties"

If I open Configuration Manager for one of the solutions in the IDE, the only platform available is "AnyCPU". I can solve this build problem by creating an x64 platform but I would rather find out why this build error is occurring in the first place. I have a good 20 or 30 sin tolutions and would rather not have to go through all of them creating x64 platforms. Yesterday this build error wasn't happening. I rebooted the machine, and now it is failing.

Is there a way I can change this behaviour so it continues to build the projects using the "AnyCPU" platform?

I tried specifying the target using this command line:

c:/Windows/Microsoft.NET/Framework/v4.0.30319\msbuild.exe /p:Configuration=Debug "/p:Platform=Any CPU"

It succeeds, but again, why do I suddenly have to specify this platform explicitly when yesterday I did not?

can i use wildcards in msbuld property methods ( such as .Replace )

$
0
0
I am using the string.Replace msbuild method to modify strings in the property, can I use wildcards ( . ?  *) and/or other regular expressions?

Issue with using UNC path with Exec command

$
0
0

Hi there,

I am trying to use Exec command with PSExe. I can use it if i specify the full path to the exe on my local machine. However i would like to the use the PSExe which is installed on a server within my network. I checked the server if it has it installed and has the correct permissions regarding sharing and it does.

I tried to use the following command within a target but i get the error The system cannot find the path specified.

<Exec Command="CALL '\\TheServer\PSTools\PsExec.exe' -accepteula \\MyServer -s -e -u serviceacc -p somePassword" IgnoreExitCode="false" ContinueOnError="false" Timeout="600000" />

Can someone tell me please if the Exec command handle UNC paths?

If so how would i go about achieving this?

Kind Regards,


Gnerating PDB's

$
0
0

Hi,

I want to create PDB's for a project (.exe) which has multiple files in it. I want that only the pdb for that exe should get created but it should include the symbols for the files (.cpp)  present in the project.

When my application is crashed I should get the exact line where the crash occured and not a line where the function is called. Since that function is defined in other file whose pdb is not generated the exact line in that function is not given.

Example. Ihave project a.exe whose pdb a.pdb is generated.

'a' project has multiple files a.cpp, a1.cpp, a2.cpp. When a.exe crashes the crash line is one line of a.cpp where a function is called in a1.cpp. I want the line of a1.cpp.

Thanks

Compile .Net projects with MSBuild and creating a log for compiled, failed & skipped projects

$
0
0

Please bear with me since I'm still new to MSBuild; Actually i was trying to use the MSBuild task to compile a list of .Net project files. I wanted to have a log of the list of project files that were compiled successfully, a list of those which were skipped due to not having any new changes checked into TFS and finally a list of those projects which failed to compile.

I tried a few options after looking at a few code snippets on the net but am still not able to get the logs populated correctly.
Please find below the sample project file that i am using:

<Target Name="CoreBuild">
           <MSBuild Projects="@(ProjectsToBuild)"
                                        ContinueOnError="true"
                                        Properties="OutputPath=D:\Projects\bin-dotnet\;
                                        OutDir=D:\Projects\bin-dotnet\;
                                        Configuration=Debug;
                                        DefineTrace=true;
                                        SkipUnchanged=true;">
                         <Output TaskParameter="TargetOutputs" ItemName="CompiledAssemblies" />
                         <Output ItemName="OutputFiles" TaskParameter="TargetOutputs"/>
            </MSBuild>
</Target>

<ItemGroup>
    <DotNetRecompileLog Include="D:\Projects\Dot_Net_Compile_Log.log"/>
    <DotNetSkippedLog Include="D:\Projects\Dot_Net_Skipped_Log.log"/>
    <DotNetFailedLog Include="D:\Projects\Dot_Net_Failed_Log.log"/>
   
    <CompiledProjects Include="@(ProjectsToBuild)"/>
    <SkippedProjects Include="@(ProjectsToBuild)"/>
    <FailedProjects Include="@(ProjectsToBuild)"/>
</ItemGroup>
 
<Target Name="WriteLogs">
    <WriteLinesToFile File="@(DotNetRecompileLog)" Lines="@(CompiledProjects)" Overwrite="true" Encoding="UTF-8" />
    <WriteLinesToFile File="@(DotNetSkippedLog)" Lines="@(SkippedProjects)" Overwrite="true" Encoding="UTF-8" />
    <WriteLinesToFile File="@(DotNetFailedLog)" Lines="@(FailedProjects)" Overwrite="true" Encoding="UTF-8" />
</Target> 

Basically i am trying to get the list of:

             1. Successfully recompiled projects into D:\Projects\Dot_Net_Compile_Log.log

             2. Skipped projects into D:\Projects\Dot_Net_Skipped_Log.log

             3. Failed projects into D:\Projects\Dot_Net_Failed_Log.log

For the time being, it's just flushing out the complete list of projects into all 3 logs. Can anyone please help me find a way of doing that?

c++ Intellisense for transformed include dirs

$
0
0

Hi,

I would like to avoid having to set the include path for projects that are already set as reference. By convention, the public header files of our projects are always located in the directory '../api', relative to the project file. Therefor, the include path can simply be the list of referenced projects changed to that particular api folder.

I've been able to do this by modifying the vcxproj file like below:

<!-- ... --><!-- Add the RefList property --><PropertyGroup><RefList>
        @(ProjectReference -> '%(RelativeDir)..\api')</RefList></PropertyGroup><!-- ... --><!-- Use the reflist property in the include directories --><ClCompile><!-- ... --><AdditionalIncludeDirectories>$(RefList);%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories><!-- ... --></ClCompile><!-- ... -->

Unfortunately, Intellisense can't seem to handle this: the headers and definitions from referenced projects are underlined with red squiggles.

I'm using Visual Studio 2013, update 3.

Any ideas?

Thanks,

Tom



MSBuild error MSB4018 with VS2012 Update 1

$
0
0

I installed VS2012 Professional (on Win7 32-bit), tried compiling a few projects, and everything seemed to be working OK. Then I installed Update 1, and ever since MSBuild fails to build all projects.

I tried the following test - create a new console application. Selected theEmpty Project option, all other checkboxes are unchecked. Added a new file namedmain.cpp to the project. The file contains a single line

int main() {}

MSBuild fails (both Debug and Release configurations) when trying to build this project. The IDE output window shows the following error:

1>------ Build started: Project: Test, Configuration: Debug Win32 ------
1>C:\Program Files\MSBuild\Microsoft.Cpp\v4.0\V110\Microsoft.CppCommon.targets(347,5): error MSB4018: The "CL" task failed unexpectedly.
1>C:\Program Files\MSBuild\Microsoft.Cpp\v4.0\V110\Microsoft.CppCommon.targets(347,5): error MSB4018: System.TypeInitializationException: The type initializer for 'Microsoft.Build.Utilities.FileTracker' threw an exception. ---> System.IO.FileNotFoundException: The system cannot find the file specified. (Exception from HRESULT: 0x80070002)
1>C:\Program Files\MSBuild\Microsoft.Cpp\v4.0\V110\Microsoft.CppCommon.targets(347,5): error MSB4018:    at System.Runtime.InteropServices.Marshal.ThrowExceptionForHRInternal(Int32 errorCode, IntPtr errorInfo)
1>C:\Program Files\MSBuild\Microsoft.Cpp\v4.0\V110\Microsoft.CppCommon.targets(347,5): error MSB4018:    at System.Runtime.InteropServices.Marshal.ThrowExceptionForHR(Int32 errorCode)
1>C:\Program Files\MSBuild\Microsoft.Cpp\v4.0\V110\Microsoft.CppCommon.targets(347,5): error MSB4018:    at Microsoft.Build.Shared.NativeMethodsShared.ThrowExceptionForErrorCode(Int32 errorCode)
1>C:\Program Files\MSBuild\Microsoft.Cpp\v4.0\V110\Microsoft.CppCommon.targets(347,5): error MSB4018:    at Microsoft.Build.Shared.NativeMethodsShared.GetLongFilePath(String path)
1>C:\Program Files\MSBuild\Microsoft.Cpp\v4.0\V110\Microsoft.CppCommon.targets(347,5): error MSB4018:    at Microsoft.Build.Utilities.FileTracker..cctor()
1>C:\Program Files\MSBuild\Microsoft.Cpp\v4.0\V110\Microsoft.CppCommon.targets(347,5): error MSB4018:    --- End of inner exception stack trace ---
1>C:\Program Files\MSBuild\Microsoft.Cpp\v4.0\V110\Microsoft.CppCommon.targets(347,5): error MSB4018:    at Microsoft.Build.CPPTasks.CL.ComputeOutOfDateSources()
1>C:\Program Files\MSBuild\Microsoft.Cpp\v4.0\V110\Microsoft.CppCommon.targets(347,5): error MSB4018:    at Microsoft.Build.CPPTasks.TrackedVCToolTask.SkipTaskExecution()
1>C:\Program Files\MSBuild\Microsoft.Cpp\v4.0\V110\Microsoft.CppCommon.targets(347,5): error MSB4018:    at Microsoft.Build.Utilities.ToolTask.Execute()
1>C:\Program Files\MSBuild\Microsoft.Cpp\v4.0\V110\Microsoft.CppCommon.targets(347,5): error MSB4018:    at Microsoft.Build.CPPTasks.TrackedVCToolTask.Execute()
1>C:\Program Files\MSBuild\Microsoft.Cpp\v4.0\V110\Microsoft.CppCommon.targets(347,5): error MSB4018:    at Microsoft.Build.BackEnd.TaskExecutionHost.Microsoft.Build.BackEnd.ITaskExecutionHost.Execute()
1>C:\Program Files\MSBuild\Microsoft.Cpp\v4.0\V110\Microsoft.CppCommon.targets(347,5): error MSB4018:    at Microsoft.Build.BackEnd.TaskBuilder.<ExecuteInstantiatedTask>d__20.MoveNext()
========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped ==========


I've tried to call cl.exe from the command line, and the file gets compiled successfully. I used

cl main.cpp

Also copy pasted options from the IDE and invoked it as

cl <compiler options> main.cpp /link <linker options>

and it works.


However, trying to run MSBuild on the solution fails with the same errors. I've uploaded the project I was using, along with the output from MSBuild (in msbuild.log) obtained using

MSBuild Test.sln /p:Configuration=Debug /verbosity:diag
to SkyDrive (Test.zip). Could someone please take a look at what the problem might be?

Setup Project not load

$
0
0

hi all,

i have a windows application project, its developed .net 4.0 and VS 2012. But, now if im opening that setup project then im getting below exception



if i click on More Information link then its going to http://msdn.microsoft.com/query/dev11.query?appId=Dev11IDEF1&l=EN-US&k=k(VS.ReviewProjectAndSolutionChangesDialog.Upgrade)&rd=true

I did right click but, i dont see Add option so, i choose Reload Project that time i got above error.

Next, i right click and click Edit Setup.vdproj there i have seen below informations

"DeployProject"
{
"VSVersion" = "3:800"
"ProjectType" = "8:{978C614F-708E-4E1A-B201-565925725DBA}"
"IsWebType" = "8:FALSE"
"ProjectName" = "8:PSetup"
"LanguageId" = "3:1033"
"CodePage" = "3:1252"
"UILanguageId" = "3:1033"
"SccProjectName" = "8:SAK"
"SccLocalPath" = "8:SAK"
"SccAuxPath" = "8:SAK"
"SccProvider" = "8:SAK"

Experts can you please help me.


Thanks In Advance, Jeyaseelan

Viewing all 2763 articles
Browse latest View live


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