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

MSBuild does not find .csproj file

$
0
0

I can build my project within Visual Studio 2008, but if I try to build it using MSBuild on the command line, it fails to find the .csproj file, which is located in the same folder as the sln file. What am I doing wrong? The command I am trying within the command prompt is:

C:\Documents and Settings\Administrator\My Documents\Visual Studio 2008\Projects\BAMLive\TelemetryUserClient\TelemetryUserClient>c:\windows\microsoft.net\framew
ork\v3.5\msbuild "c:\Documents and Settings\Administrator\My Documents\Visual St
udio 2008\Projects\BAMLive\TelemetryUserClient\TelemetryUserClient\TelemetryUser
Client.sln" /t:build   


All custom build target rebuilt after a single custom target fails in VS2010 - workaround?

$
0
0

We've run into a problem with VS2010SP1 where if a custom build target fails, then on the next build, all custom targets get rebuilt. This really slows down development. 

It sure looks like the custombuild rule is mishandling custombuild.command.1.tlog. Any suggestions? (One custom build target per project won't work)

I am able to repro the problem in a small test app. Our sample custom build rule looks like:

  <ItemGroup>
    <CustomBuild Include="cow1.moo">
      <FileType>Document</FileType>
      <Command>"./Bovinator.py" -o "./$(ConfigurationName)/%(Filename).txt" "%(FullPath)"</Command>
      <Message>Bovinating</Message>
      <Outputs>./$(ConfigurationName)/%(Filename).txt</Outputs>
    </CustomBuild>
    <CustomBuild Include="cow2.moo">
      <FileType>Document</FileType>
      <Command>
        "./Bovinator.py" -o "./$(ConfigurationName)/%(Filename).txt" "%(FullPath)"</Command>
        <Message>Bovinating</Message>
        <Outputs>./$(ConfigurationName)/%(Filename).txt</Outputs>
      </CustomBuild>
  </ItemGroup>

.tlog files

$
0
0

I have few questions regarding .tlog files generated during build.


What for are used .write.1.tlog files?

From experiments and experience I think they are used (at least) to decide what files should be removed duringClean (or alike). Is that true? Is it "specified" anywhere that those files are used for this? Or is it just "community knowledge"?

Are they used for anything else?


What generates .write.1.tlog files?

It seems that “internal tools” like cl or link generate those files by themselves. But some other tools like the ones inC:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\BuildCustomizations generate those files “manually” by invoking WriteLinesToFile task.

What has to be done to have them generated “automatically” rather than “manually”? Does XamlTaskFactory (which seems popular for integrating custom command line tools) support it somehow?


Why BuildCustomizations call the WriteLinesToFile by constructing first_tlog item and then referring it in WriteLinesToFile (it doesn’t seem to be used for anything else)? Is it needed for technical reasons? Wasn’t it doable otherwise? Or it is just a matter of what the author considered “elegant” and “readable”?


What for are used .read.1.tlog files?

It looks like a useful source of information about “additional dependencies”. But I fail to see how it is used by MSBuild. It seems to be never reading those files (explicitly).


What generates .read.1.tlog files

As opposed to .write.1.tlog files it seems no one is making them “manually”. But those “internal tools” like cl or link do generate them somehow.

How to have them generated for custom tasks. In particular those based on XamlTaskFactory?


Is the format of those files specified anywhere? I would expect some definition if providedBuildCustomizations explicitly write those files.


How should be .tlog files named?

Why there is the .1. part of the name? Is it a placeholder for future extensions?

What should be used for “core” of the name? Those “internal tools” like cl or link seem to use tool name. But those in BuildCustomizations use project name instead. What if tool name happens to be also project name? How such name conflicts are resolved?


I’m researching this topic since I’m integrating a custom compiler (for custom file type) into MSBuild. (RCC from Qt that handles resources.)

I would like my target to be invoked not only when the custom file changed but also when any of resource files it refers to changes. This is a similar to invoking acl when a header file changes.

The issue is how should I name those additional dependencies? That particular file type is simple enough XML that I can extract the additional dependencies by running a simple XPath expression (withXmlPeek for example) and using the result to modify Input of appropriate target. But even if doable like that in this simple scenario it doesn’t look like a general solution.

So is there a way to have the .read.1.tlog file generated for theXamlTaskFactory task without having to modify the command line tool itself?

Also extracting the additional dependencies each and every time is unreasonable. It would be far better to cache them. This should speed up much since (1) if the file is changed then we have to recompile it anyway and may ignore the cache information (which at that point might be invalid) and (2) if it didn’t change then the cache information must be still valid and we can easily see what are the additional dependencies. The gain here (in 2) is that the cache stores less information and could be read in a simpler way than XPathing original XML file. I could run such cache on my own. But then I thought why not try to write it to .read.1.tlog file? Would that give me anything? Like having the dependencies “deduced” automatically?


Adam Badura

fatal error CS0013: Unexpected error writing metadata to file 'Not enough storage is available to complete this operation'

$
0
0

We have a Visual Studio 2010 solution running with just 3-4 projects in the solution.  This is a Windows Server 2008 32 Bit OS and 4GB RAM.  

More often when building the solution, the error "fatal error CS0013: Unexpected error writing metadata to file 'Not enough storage is available to complete this operation" occurs and it fails the build. 

A general research talks only about similar errors in VS 2005 and the fix to apply SP1.  But its suprising the error is continuing even in VS 2010.

Any recommended solutions would be appreciated!

error MSB4057: The target "_Link" does not exit in the project.

$
0
0

I created a empty project in vs2012, and simply coded like this.

----

int main()

{

return 0;

}

----

Then bluid fails with  "error MSB4057: The target "_Link" does not exit in the project."

So I reinstalled(repaired) vs2012 and .net framework, but nothing was changed.

I can't figure out why!! Please help.

Error MSB6006: "cmd.exe" exited with code 3.

$
0
0

Hey, 

I have trouble compiling this program. Can someone help me out here?

Here's the output:

1>------ Build started: Project: fluids_v3, Configuration: Debug Win32 ------
1>Build started 8/20/2013 12:25:26 PM.
1>Environment at start of build:
1>MSBuildExtensionsPath32 = C:\Program Files (x86)\MSBuild
1>MSBuildExtensionsPath64 = C:\Program Files\MSBuild
1>MSBuildExtensionsPath = C:\Program Files (x86)\MSBuild
1>LOCALAPPDATA = C:\Users\Phillip\AppData\Local
1>ALLUSERSPROFILE = C:\ProgramData
1>ANSYS145_DIR = C:\Program Files\ANSYS Inc\v145\ANSYS
1>ANSYSLIC_DIR = C:\Program Files\ANSYS Inc\Shared Files\Licensing
1>ANSYS_SYSDIR = winx64
1>ANSYS_SYSDIR32 = win32
1>APPDATA = C:\Users\Phillip\AppData\Roaming
1>AWP_LOCALE145 = en-us
1>AWP_ROOT145 = C:\Program Files\ANSYS Inc\v145
1>CADOE_DOCDIR145 = C:\Program Files\ANSYS Inc\v145\CommonFiles\help\en-us\solviewer
1>CADOE_LIBDIR145 = C:\Program Files\ANSYS Inc\v145\CommonFiles\Language\en-us
1>CG_BIN64_PATH = C:\Program Files (x86)\NVIDIA Corporation\Cg\bin.x64
1>CG_BIN_PATH = C:\Program Files (x86)\NVIDIA Corporation\Cg\bin
1>CG_INC_PATH = C:\Program Files (x86)\NVIDIA Corporation\Cg\include
1>CG_LIB64_PATH = C:\Program Files (x86)\NVIDIA Corporation\Cg\lib.x64
1>CG_LIB_PATH = C:\Program Files (x86)\NVIDIA Corporation\Cg\lib
1>CommonProgramFiles = C:\Program Files (x86)\Common Files
1>CommonProgramW6432 = C:\Program Files\Common Files
1>COMPUTERNAME = PHILLIP-PC
1>ComSpec = C:\Windows\system32\cmd.exe
1>CUDA_BIN_PATH = C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v5.5bin
1>CUDA_INC_PATH = C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v5.5include
1>CUDA_LIB_PATH = C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v5.5lib\x64
1>CUDA_PATH = C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v5.5
1>CUDA_PATH_V4_2 = C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v4.2\
1>CUDA_PATH_V5_5 = C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v5.5
1>FP_NO_HOST_CHECK = NO
1>HOMEDRIVE = C:
1>HOMEPATH = \Users\Phillip
1>ICEMCFD_ROOT145 = C:\Program Files\ANSYS Inc\v145\icemcfd
1>ICEMCFD_SYSDIR = win64_amd
1>LOGONSERVER = \\PHILLIP-PC
1>LSTC_LICENSE = ANSYS
1>NUMBER_OF_PROCESSORS = 8
1>NVCUDASAMPLES5_5_ROOT = C:\ProgramData\NVIDIA Corporation\CUDA Samples\v5.5
1>NVCUDASAMPLES_ROOT = C:\ProgramData\NVIDIA Corporation\CUDA Samples\v5.5
1>NVSDKCOMPUTE_ROOT = C:\ProgramData\NVIDIA Corporation\NVIDIA GPU Computing SDK 4.2
1>NVTOOLSEXT_PATH = C:\Program Files\NVIDIA Corporation\NvToolsExt\
1>OS = Windows_NT
1>Path = C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v5.5\bin;C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v5.5\libnvvp;C:\Program Files (x86)\Microsoft SDKs\Windows\v7.0A\Bin;.;;.;
1>PATHEXT = .COM;.EXE;.BAT;.CMD;.VBS;.VBE;.JS;.JSE;.WSF;.WSH;.MSC
1>PROCESSOR_ARCHITECTURE = x86
1>PROCESSOR_ARCHITEW6432 = AMD64
1>PROCESSOR_IDENTIFIER = Intel64 Family 6 Model 58 Stepping 9, GenuineIntel
1>PROCESSOR_LEVEL = 6
1>PROCESSOR_REVISION = 3a09
1>ProgramData = C:\ProgramData
1>ProgramFiles = C:\Program Files (x86)
1>ProgramW6432 = C:\Program Files
1>PSModulePath = C:\Windows\system32\WindowsPowerShell\v1.0\Modules\
1>PUBLIC = C:\Users\Public
1>P_SCHEMA = C:\Program Files\ANSYS Inc\v145\AISOL\CADIntegration\Parasolid\PSchema
1>SESSIONNAME = Console
1>SystemDrive = C:
1>SystemRoot = C:\Windows
1>TEMP = C:\Temp
1>TMP = C:\Temp
1>USERDOMAIN = Phillip-PC
1>USERNAME = Phillip
1>USERPROFILE = C:\Users\Phillip
1>VisualStudioDir = C:\Users\Phillip\Documents\Visual Studio 2010
1>VS100COMNTOOLS = D:\Program Files (x86)\Microsoft Visual Studio 10.0\Common7\Tools\
1>windir = C:\Windows
1>__COMPAT_LAYER = ElevateCreateProcess
1>
1>Building with tools version "4.0".
1>Target "_CheckForInvalidConfigurationAndPlatform: (TargetId:2)" in file "C:\Windows\Microsoft.NET\Framework\v4.0.30319\Microsoft.Common.Targets" from project "C:\Users\Phillip\Desktop\fluids_v3_src\fluids_v3.vcxproj" (entry point):
1>Task "Error" skipped, due to false condition; ( '$(_InvalidConfigurationError)' == 'true' ) was evaluated as ( '' == 'true' ).
1>Task "Warning" skipped, due to false condition; ( '$(_InvalidConfigurationWarning)' == 'true' ) was evaluated as ( '' == 'true' ).
1>Using "Message" task from assembly "Microsoft.Build.Tasks.v4.0, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a".
1>Task "Message" (TaskId:2)
1>  Configuration=Debug (TaskId:2)
1>Done executing task "Message". (TaskId:2)
1>Task "Message" (TaskId:3)
1>  Platform=Win32 (TaskId:3)
1>Done executing task "Message". (TaskId:3)
1>Task "Error" skipped, due to false condition; ('$(OutDir)' != '' and !HasTrailingSlash('$(OutDir)')) was evaluated as ('C:\Users\Phillip\Desktop\fluids_v3_src\Debug\' != '' and !HasTrailingSlash('C:\Users\Phillip\Desktop\fluids_v3_src\Debug\')).
1>Task "Error" skipped, due to false condition; ('$(BaseIntermediateOutputPath)' != '' and !HasTrailingSlash('$(BaseIntermediateOutputPath)')) was evaluated as ('obj\' != '' and !HasTrailingSlash('obj\')).
1>Task "Error" skipped, due to false condition; ('$(IntermediateOutputPath)' != '' and !HasTrailingSlash('$(IntermediateOutputPath)')) was evaluated as ('Debug\' != '' and !HasTrailingSlash('Debug\')).
1>Done building target "_CheckForInvalidConfigurationAndPlatform" in project "fluids_v3.vcxproj".: (TargetId:2)
1>Target "_DetermineManagedStateFromCL: (TargetId:3)" in file "C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\Microsoft.CppBuild.targets" from project "C:\Users\Phillip\Desktop\fluids_v3_src\fluids_v3.vcxproj" (target "Build" depends on it):
1>Done building target "_DetermineManagedStateFromCL" in project "fluids_v3.vcxproj".: (TargetId:3)
1>Target "_PrepareForBuild: (TargetId:4)" in file "C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\Microsoft.BuildSteps.Targets" from project "C:\Users\Phillip\Desktop\fluids_v3_src\fluids_v3.vcxproj" (target "Build" depends on it):
1>Done building target "_PrepareForBuild" in project "fluids_v3.vcxproj".: (TargetId:4)
1>Target "SetBuildDefaultEnvironmentVariables: (TargetId:5)" in file "C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\Microsoft.Cpp.targets" from project "C:\Users\Phillip\Desktop\fluids_v3_src\fluids_v3.vcxproj" (target "Build" depends on it):
1>Using "SetEnv" task from assembly "Microsoft.Build.CppTasks.Common, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a".
1>Task "SetEnv" (TaskId:4)
1>  PATH=libs;D:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\bin;C:\Program Files (x86)\Microsoft SDKs\Windows\v7.0A\bin\NETFX 4.0 Tools;C:\Program Files (x86)\Microsoft SDKs\Windows\v7.0A\bin;D:\Program Files (x86)\Microsoft Visual Studio 10.0\Common7\Tools\bin;D:\Program Files (x86)\Microsoft Visual Studio 10.0\Common7\tools;D:\Program Files (x86)\Microsoft Visual Studio 10.0\Common7\ide;C:\Program Files (x86)\HTML Help Workshop;C:\Program Files (x86)\Microsoft SDKs\Windows\v7.0A\\bin;C:\Windows\Microsoft.NET\Framework\v4.0.30319\;D:\Program Files (x86)\Microsoft Visual Studio 10.0\;C:\Windows\SysWow64;;C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v5.5\bin;C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v5.5\libnvvp;C:\Program Files (x86)\Microsoft SDKs\Windows\v7.0A\Bin;.;;.;; (TaskId:4)
1>Done executing task "SetEnv". (TaskId:4)
1>Task "SetEnv" skipped, due to false condition; ('$(_IsNativeEnvironment)' == 'true') was evaluated as ('' == 'true').
1>Task "SetEnv" (TaskId:5)
1>  LIB=libs;C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v4.2\lib\Win32;D:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\lib;D:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\atlmfc\lib;C:\Program Files (x86)\Microsoft SDKs\Windows\v7.0A\lib;C:\Program Files (x86)\Microsoft SDKs\Windows\v7.0A\\lib (TaskId:5)
1>Done executing task "SetEnv". (TaskId:5)
1>Task "SetEnv" (TaskId:6)
1>  LIBPATH=libs;D:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\atlmfc\lib;D:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\lib (TaskId:6)
1>Done executing task "SetEnv". (TaskId:6)
1>Task "SetEnv" (TaskId:7)
1>  INCLUDE=libs;C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v4.2\include;D:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\include;D:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\atlmfc\include;C:\Program Files (x86)\Microsoft SDKs\Windows\v7.0A\include;C:\Program Files (x86)\Microsoft SDKs\Windows\v7.0A\\include; (TaskId:7)
1>Done executing task "SetEnv". (TaskId:7)
1>Done building target "SetBuildDefaultEnvironmentVariables" in project "fluids_v3.vcxproj".: (TargetId:5)
1>Target "SetUserMacroEnvironmentVariables" skipped, due to false condition; ('@(BuildMacro)' != '') was evaluated as ('' != '').
1>Target "BeforeResolveReferences: (TargetId:6)" in file "C:\Windows\Microsoft.NET\Framework\v4.0.30319\Microsoft.Common.Targets" from project "C:\Users\Phillip\Desktop\fluids_v3_src\fluids_v3.vcxproj" (target "ResolveReferences" depends on it):
1>Done building target "BeforeResolveReferences" in project "fluids_v3.vcxproj".: (TargetId:6)
1>Target "AssignProjectConfiguration" skipped, due to false condition; ('@(ProjectReference)'!='') was evaluated as (''!='').
1>Target "AssignProjectConfiguration" skipped, due to false condition; ('@(ProjectReference)'!='') was evaluated as (''!='').
1>Target "_SplitProjectReferencesByFileExistence: (TargetId:7)" in file "C:\Windows\Microsoft.NET\Framework\v4.0.30319\Microsoft.Common.Targets" from project "C:\Users\Phillip\Desktop\fluids_v3_src\fluids_v3.vcxproj" (target"ResolveProjectReferences" depends on it):
1>Task "ResolveNonMSBuildProjectOutput" skipped, due to false condition; ('$(BuildingInsideVisualStudio)'=='true' and '@(ProjectReferenceWithConfiguration)'!='') was evaluated as ('true'=='true' and ''!='').
1>Done building target "_SplitProjectReferencesByFileExistence" in project "fluids_v3.vcxproj".: (TargetId:7)
1>Target "_RemoveNameMetadataFromProjectReferenceItems" skipped, due to false condition; ('@(ProjectReference)'!='') was evaluated as (''!='').
1>Target "ResolveProjectReferences: (TargetId:8)" in file "C:\Windows\Microsoft.NET\Framework\v4.0.30319\Microsoft.Common.Targets" from project "C:\Users\Phillip\Desktop\fluids_v3_src\fluids_v3.vcxproj" (target "ResolveReferences" depends on it):
1>Task "MSBuild" skipped, due to false condition; ('%(_MSBuildProjectReferenceExistent.BuildReference)' == 'true' and '@(ProjectReferenceWithConfiguration)' != '' and ('$(BuildingInsideVisualStudio)' == 'true' or '$(BuildProjectReferences)' != 'true') and '@(_MSBuildProjectReferenceExistent)' != '') was evaluated as ('' == 'true' and '' != '' and ('true' == 'true' or 'true' != 'true') and '' != '').
1>Task "MSBuild" skipped, due to false condition; ('%(_MSBuildProjectReferenceExistent.BuildReference)' == 'true' and '@(ProjectReferenceWithConfiguration)' != '' and '$(BuildingInsideVisualStudio)' != 'true' and '$(BuildProjectReferences)' == 'true' and '@(_MSBuildProjectReferenceExistent)' != '') was evaluated as ('' == 'true' and '' != '' and 'true' != 'true' and 'true' == 'true' and '' != '').
1>Task "MSBuild" skipped, due to false condition; ('%(_MSBuildProjectReferenceExistent.BuildReference)' == 'true' and '@(ProjectReferenceWithConfiguration)' != '' and '$(BuildingProject)' == 'true' and '@(_MSBuildProjectReferenceExistent)' != '') was evaluated as ('' == 'true' and '' != '' and 'true' == 'true' and '' != '').
1>Task "Warning" skipped, due to false condition; ('@(ProjectReferenceWithConfiguration)' != '' and '@(_MSBuildProjectReferenceNonexistent)' != '') was evaluated as ('' != '' and '' != '').
1>Done building target "ResolveProjectReferences" in project "fluids_v3.vcxproj".: (TargetId:8)
1>Target "ResolveNativeReferences" skipped, due to false condition; ('@(NativeReference)'!='') was evaluated as (''!='').
1>Target "ResolveAssemblyReferences" skipped, due to false condition; ('@(Reference)'!='' or '@(_ResolvedProjectReferencePaths)'!='' or '@(_ExplicitReference)' != '') was evaluated as (''!='' or ''!='' or '' != '').
1>Target "ResolveComReferences" skipped, due to false condition; ('@(COMReference)'!='' or '@(COMFileReference)'!='') was evaluated as (''!='' or ''!='').
1>Target "AfterResolveReferences: (TargetId:9)" in file "C:\Windows\Microsoft.NET\Framework\v4.0.30319\Microsoft.Common.Targets" from project "C:\Users\Phillip\Desktop\fluids_v3_src\fluids_v3.vcxproj" (target "ResolveReferences" depends on it):
1>Done building target "AfterResolveReferences" in project "fluids_v3.vcxproj".: (TargetId:9)
1>Target "ResolveTestReferences" skipped, due to false condition; ('@(Shadow)'!='') was evaluated as (''!='').
1>Target "ResolveReferences: (TargetId:10)" in file "C:\Windows\Microsoft.NET\Framework\v4.0.30319\Microsoft.Common.Targets" from project "C:\Users\Phillip\Desktop\fluids_v3_src\fluids_v3.vcxproj" (target "Build" depends on it):
1>Done building target "ResolveReferences" in project "fluids_v3.vcxproj".: (TargetId:10)
1>Target "PlatformPrepareForBuild: (TargetId:11)" in file "C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\Platforms\Win32\Microsoft.Cpp.Win32.Targets" from project "C:\Users\Phillip\Desktop\fluids_v3_src\fluids_v3.vcxproj" (target "PrepareForBuild" depends on it):
1>Task "VCMessage" skipped, due to false condition; (!(exists('$(VCTargetsPath)\Platforms\Win32\PlatformToolsets\$(PlatformToolset)\Microsoft.Cpp.Win32.$(PlatformToolset).targets'))) was evaluated as (!(exists('C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\\Platforms\Win32\PlatformToolsets\v100\Microsoft.Cpp.Win32.v100.targets'))).
1>Done building target "PlatformPrepareForBuild" in project "fluids_v3.vcxproj".: (TargetId:11)
1>Target "GetFrameworkPaths: (TargetId:12)" in file "C:\Windows\Microsoft.NET\Framework\v4.0.30319\Microsoft.NETFramework.targets" from project "C:\Users\Phillip\Desktop\fluids_v3_src\fluids_v3.vcxproj" (target "PrepareForBuild" depends on it):
1>Done building target "GetFrameworkPaths" in project "fluids_v3.vcxproj".: (TargetId:12)
1>Target "GetWinFXPath" skipped, due to false condition; (('@(Page)' != '' or '@(ApplicationDefinition)' != '' or '@(Resource)' != '') and ('$(GetWinFXNativePath)' != '' or '$(GetWinFXWoWPath)' != '' )) was evaluated as (('' != '' or '' != '' or '' != '') and ('' != '' or '' != '' )).
1>Target "GetReferenceAssemblyPaths: (TargetId:13)" in file "C:\Windows\Microsoft.NET\Framework\v4.0.30319\Microsoft.Common.Targets" from project "C:\Users\Phillip\Desktop\fluids_v3_src\fluids_v3.vcxproj" (target "PrepareForBuild" depends on it):
1>Task "GetReferenceAssemblyPaths" skipped, due to false condition; ('$(TargetFrameworkMoniker)' != '' and ('$(_TargetFrameworkDirectories)' == '' or '$(_FullFrameworkReferenceAssemblyPaths)' == '')) was evaluated as ('.NETFramework,Version=v4.0' != '' and ('C:\Program Files (x86)\Reference Assemblies\Microsoft\Framework\.NETFramework\v4.0' == '' or 'C:\Program Files (x86)\Reference Assemblies\Microsoft\Framework\.NETFramework\v4.0' == '')).
1>Done building target "GetReferenceAssemblyPaths" in project "fluids_v3.vcxproj".: (TargetId:13)
1>Target "PrepareForBuild: (TargetId:14)" in file "C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\Microsoft.CppBuild.targets" from project "C:\Users\Phillip\Desktop\fluids_v3_src\fluids_v3.vcxproj" (target "Build" depends on it):
1>Task "VCMessage" skipped, due to false condition; ('$(DesignTimeBuild)'!='true' and '$(ConfigurationPlatformExists)' != 'true') was evaluated as (''!='true' and 'true' != 'true').
1>Using "MakeDir" task from assembly "Microsoft.Build.Tasks.v4.0, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a".
1>Task "MakeDir" (TaskId:8)
1>Done executing task "MakeDir". (TaskId:8)
1>Task "VCMessage" skipped, due to false condition; ('$(DesignTimeBuild)'!='true' and '$(VCInstallDir)'=='' and '$(UseEnv)' != 'true' and ($(TargetFrameworkVersion)=='v3.5' or $(TargetFrameworkVersion)=='v3.0' or $(TargetFrameworkVersion)=='v2.0' )) was evaluated as (''!='true' and 'D:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\'=='' and '' != 'true' and (v4.0=='v3.5' or v4.0=='v3.0' or v4.0=='v2.0' )).
1>Task "VCMessage" skipped, due to false condition; ('$(DesignTimeBuild)'!='true' and '$(VCInstallDir)'=='' and '$(UseEnv)' != 'true' and '$(PlatformToolset)'=='v90') was evaluated as (''!='true' and 'D:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\'=='' and '' != 'true' and 'v100'=='v90').
1>Task "VCMessage" skipped, due to false condition; ('$(VCInstallDir)'=='' and '$(UseEnv)' != 'true') was evaluated as ('D:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\'=='' and '' != 'true').
1>Task "VCMessage" skipped, due to false condition; ('$(WindowsSDKDir)'=='' and '$(UseEnv)' != 'true') was evaluated as ('C:\Program Files (x86)\Microsoft SDKs\Windows\v7.0A\'=='' and '' != 'true').
1>Task "VCMessage" skipped, due to false condition; ('$(IntDirTrailingSlashWarning)'=='true') was evaluated as (''=='true').
1>Task "VCMessage" skipped, due to false condition; ('$(OutDirTrailingSlashWarning)'=='true') was evaluated as (''=='true').
1>Task "MakeDir" (TaskId:9)
1>Done executing task "MakeDir". (TaskId:9)
1>Done building target "PrepareForBuild" in project "fluids_v3.vcxproj".: (TargetId:14)
1>Target "PrepareForBuild" skipped. Previously built successfully.
1>Target "InitializeBuildStatus: (TargetId:15)" in file "C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\Microsoft.CppBuild.targets" from project "C:\Users\Phillip\Desktop\fluids_v3_src\fluids_v3.vcxproj" (target "Build" depends on it):
1>Using "ReadLinesFromFile" task from assembly "Microsoft.Build.Tasks.v4.0, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a".
1>Task "ReadLinesFromFile" (TaskId:10)
1>Done executing task "ReadLinesFromFile". (TaskId:10)
1>Using "WriteLinesToFile" task from assembly "Microsoft.Build.Tasks.v4.0, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a".
1>Task "WriteLinesToFile" (TaskId:11)
1>Done executing task "WriteLinesToFile". (TaskId:11)
1>Using "Touch" task from assembly "Microsoft.Build.Tasks.v4.0, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a".
1>Task "Touch" (TaskId:12)
1>  Touching "Debug\fluids_v3.unsuccessfulbuild". (TaskId:12)
1>Done executing task "Touch". (TaskId:12)
1>Done building target "InitializeBuildStatus" in project "fluids_v3.vcxproj".: (TargetId:15)
1>Target "AssignProjectConfiguration" skipped, due to false condition; ('@(ProjectReference)'!='') was evaluated as (''!='').
1>Target "_SplitProjectReferencesByFileExistence" skipped. Previously built successfully.
1>Target "BuildGenerateSourcesTraverse: (TargetId:16)" in file "C:\Windows\Microsoft.NET\Framework\v4.0.30319\Microsoft.Common.Targets" from project "C:\Users\Phillip\Desktop\fluids_v3_src\fluids_v3.vcxproj" (target "BuildGenerateSources" depends on it):
1>Task "MSBuild" skipped, due to false condition; ('$(BuildPassReferences)' == 'true' and '@(ProjectReferenceWithConfiguration)' != '' and '@(_MSBuildProjectReferenceExistent)' != '' and '%(_MSBuildProjectReferenceExistent.BuildReference)' == 'true') was evaluated as ('' == 'true' and '' != '' and '' != '' and '' == 'true').
1>Done building target "BuildGenerateSourcesTraverse" in project "fluids_v3.vcxproj".: (TargetId:16)
1>Target "SetBuildDefaultEnvironmentVariables" skipped. Previously built successfully.
1>Target "SetUserMacroEnvironmentVariables" skipped, due to false condition; ('@(BuildMacro)' != '') was evaluated as ('' != '').
1>Target "PrepareForBuild" skipped. Previously built successfully.
1>Target "ResolveReferences" skipped. Previously built successfully.
1>Target "BeforeBuildGenerateSources: (TargetId:17)" in file "C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\Microsoft.BuildSteps.Targets" from project "C:\Users\Phillip\Desktop\fluids_v3_src\fluids_v3.vcxproj" (target "BuildGenerateSources" depends on it):
1>Done building target "BeforeBuildGenerateSources" in project "fluids_v3.vcxproj".: (TargetId:17)
1>Target "PreBuildEvent: (TargetId:18)" in file "C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\Microsoft.CppCommon.targets" from project "C:\Users\Phillip\Desktop\fluids_v3_src\fluids_v3.vcxproj" (target "BuildGenerateSources" depends on it):
1>Task "Message" skipped, due to false condition; ('%(PreBuildEvent.Message)' != '' and '%(PreBuildEvent.Command)' != '') was evaluated as ('' != '' and '' != '').
1>Task "Exec" skipped, due to false condition; ('%(PreBuildEvent.Command)' != '') was evaluated as ('' != '').
1>Done building target "PreBuildEvent" in project "fluids_v3.vcxproj".: (TargetId:18)
1>Target "PrepareForBuild" skipped. Previously built successfully.
1>Target "SetBuildDefaultEnvironmentVariables" skipped. Previously built successfully.
1>Target "SetUserMacroEnvironmentVariables" skipped, due to false condition; ('@(BuildMacro)' != '') was evaluated as ('' != '').
1>Target "_SelectedFiles: (TargetId:19)" in file "C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\Microsoft.CppBuild.targets" from project "C:\Users\Phillip\Desktop\fluids_v3_src\fluids_v3.vcxproj" (target "SelectCustomBuild" depends on it):
1>Done building target "_SelectedFiles" in project "fluids_v3.vcxproj".: (TargetId:19)
1>Target "SelectCustomBuild: (TargetId:20)" in file "C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\Microsoft.CppBuild.targets" from project "C:\Users\Phillip\Desktop\fluids_v3_src\fluids_v3.vcxproj" (target "CustomBuild" depends on it):
1>Done building target "SelectCustomBuild" in project "fluids_v3.vcxproj".: (TargetId:20)
1>Target "ComputeCustomBuildOutput: (TargetId:21)" in file "C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\Microsoft.CppBuild.targets" from project "C:\Users\Phillip\Desktop\fluids_v3_src\fluids_v3.vcxproj" (target "CustomBuild" depends on it):
1>Task "MakeDir" (TaskId:13)
1>Done executing task "MakeDir". (TaskId:13)
1>Done building target "ComputeCustomBuildOutput" in project "fluids_v3.vcxproj".: (TargetId:21)
1>Target "CustomBuild: (TargetId:22)" in file "C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\Microsoft.CppCommon.targets" from project "C:\Users\Phillip\Desktop\fluids_v3_src\fluids_v3.vcxproj" (target "BuildGenerateSources" depends on it):
1>Using "CustomBuild" task from assembly "Microsoft.Build.CppTasks.Common, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a".
1>Task "CustomBuild" (TaskId:14)
1>  Write Tracking Logs: (TaskId:14)
1>  Debug\custombuild.write.1.tlog (TaskId:14)
1>  Read Tracking Logs: (TaskId:14)
1>  Debug\custombuild.read.1.tlog (TaskId:14)
1>  No output for C:\USERS\PHILLIP\DESKTOP\FLUIDS_V3_SRC\FLUIDS\FLUID_SYSTEM_HOST.CU|C:\USERS\PHILLIP\DESKTOP\FLUIDS_V3_SRC\FLUIDS\FLUID_SYSTEM_KERN.CU was found in the tracking log; source compilation required. (TaskId:14)
1>  fluids\fluid_system_host.cu will be compiled as it was not found in the tracking log. (TaskId:14)
1>  fluids\fluid_system_kern.cu will be compiled as it was not found in the tracking log. (TaskId:14)
1>  "C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v5.5bin\nvcc.exe" -lcuda -lcublas -lcudart -m 32 -arch=sm_20 -ccbin "D:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\\bin" -c -D_DEBUG -DWIN32 -D_CONSOLE -D_MBCS -Xcompiler /EHsc,/W3,/nologo,/Od,/Zi,/RTC1,/MTd -I "C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v5.5include"; -I./  -I../../common/inc -o Debug\fluid_system_host.obj fluids\fluid_system_host.cu (TaskId:14)
1>  "C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v5.5bin\nvcc.exe" -lcuda -lcublas -lcudart -m 32 -arch=sm_20 -ccbin "D:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\\bin" -c -D_DEBUG -DWIN32 -D_CONSOLE -D_MBCS -Xcompiler /EHsc,/W3,/nologo,/Od,/Zi,/RTC1,/MTd -I "C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v5.5include"; -I./  -I../../common/inc -o Debug\fluid_system_kern.obj fluids\fluid_system_kern.cu (TaskId:14)
1>  Performing Custom Build Tools (TaskId:14)
1>  The system cannot find the path specified. (TaskId:14)
1>  Performing Custom Build Tools (TaskId:14)
1>  The system cannot find the path specified. (TaskId:14)
1>C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\Microsoft.CppCommon.targets(151,5): error MSB6006: "cmd.exe" exited with code 3.
1>Done executing task "CustomBuild" -- FAILED. (TaskId:14)
1>Done building target "CustomBuild" in project "fluids_v3.vcxproj" -- FAILED.: (TargetId:22)
1>
1>Project Performance Summary:
1>       78 ms  C:\Users\Phillip\Desktop\fluids_v3_src\fluids_v3.vcxproj   1 calls
1>                 78 ms  build                                      1 calls
1>
1>Target Performance Summary:
1>        0 ms  _SplitProjectReferencesByFileExistence     1 calls
1>        0 ms  GetFrameworkPaths                          1 calls
1>        0 ms  ResolveReferences                          1 calls
1>        0 ms  BeforeResolveReferences                    1 calls
1>        0 ms  GetReferenceAssemblyPaths                  1 calls
1>        0 ms  PlatformPrepareForBuild                    1 calls
1>        0 ms  PrepareForBuild                            1 calls
1>        0 ms  _PrepareForBuild                           1 calls
1>        0 ms  ComputeCustomBuildOutput                   1 calls
1>        0 ms  _DetermineManagedStateFromCL               1 calls
1>        0 ms  ResolveProjectReferences                   1 calls
1>        0 ms  BeforeBuildGenerateSources                 1 calls
1>        0 ms  InitializeBuildStatus                      1 calls
1>        0 ms  SetBuildDefaultEnvironmentVariables        1 calls
1>        0 ms  AfterResolveReferences                     1 calls
1>        0 ms  SelectCustomBuild                          1 calls
1>        0 ms  _SelectedFiles                             1 calls
1>        0 ms  PreBuildEvent                              1 calls
1>       16 ms  BuildGenerateSourcesTraverse               1 calls
1>       16 ms  _CheckForInvalidConfigurationAndPlatform   1 calls
1>       47 ms  CustomBuild                                1 calls
1>
1>Task Performance Summary:
1>        0 ms  WriteLinesToFile                           1 calls
1>        0 ms  MakeDir                                    3 calls
1>        0 ms  ReadLinesFromFile                          1 calls
1>        0 ms  Touch                                      1 calls
1>        0 ms  SetEnv                                     4 calls
1>       16 ms  Message                                    2 calls
1>       47 ms  CustomBuild                                1 calls
1>
1>Build FAILED.
1>
1>Time Elapsed 00:00:00.09
========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped ==========

Lightswitch deploy error

$
0
0

 Hi,

 I got the issue when I deploying the lightswitch project .

 I don't know how to solve

 please give me something idea

 thanks a lot!

 


Environment variable not inherited? after installing .NET 4.5

$
0
0

Hi,

The problem is that a variable defined on process level cannot be seen in my nmake scipt anymore and the only change I do is to install .NET 4.5.  I did a small test to illustrate whats the problem is.

Im using a custom build task that sets a envrionment variable on process level:
System.Environment.SetEnvironmentVariable(m_Variable, m_Value);

There is a textfile at C:\Defined.txt

I have a NMake project (External.vcxproj) that executes a mak file    <NMakeBuildCommandLine>nmake /e /f "External.mak"</NMakeBuildCommandLine>


Content of External.mak
!IF exists($(VAR_TEST))
!MESSAGE VAR_TEST is defined.
!ELSE
!MESSAGE VAR_TEST is not defined.
!ENDIF

I'll open a Visual Studio Command Prompt (2010) and execute this script

<Project xmlns="http://schemas.microsoft.com/developer/msbuild/2003" ToolsVersion="4.0">
  <UsingTask AssemblyFile="C:\tmp\BuildToolsCopy\OTPBuildTasks.dll" TaskName="BuildTasks.SetEnvironmentVariable"/>
  <Target Name="BuildIt">
<SetEnvironmentVariable Variable="VAR_TEST" Value="C:\Defined.txt"/>
<Exec Command="set"/>
<MSBuild Projects="External.vcxproj"/>
  </Target>
< /Project>

as

C:\msbuild Build.proj /t:BuildIt

Result .NET 4.0 installed

C:\tmp\test>msbuild Build.proj /t:BuildIt
Microsoft (R) Build Engine Version 4.0.30319.1
[Microsoft .NET Framework, Version 4.0.30319.225]
Copyright (C) Microsoft Corporation 2007. All rights reserved.

Build started 2012-10-23 09:11:39.
Project "C:\tmp\test\Build.proj" on node 1 (BuildIt target(s)).
BuildIt:
  set
  ...
  Framework35Version=v3.5
  FrameworkDir=C:\Windows\Microsoft.NET\Framework\
  FrameworkDIR32=C:\Windows\Microsoft.NET\Framework\
  FrameworkVersion=v4.0.30319
  FrameworkVersion32=v4.0.30319
  USERPROFILE=C:\Users\a.user
  VAR_TEST=C:\Defined.txt
  VCINSTALLDIR=C:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\
  VS100COMNTOOLS=c:\Program Files (x86)\Microsoft Visual Studio 10.0\Common7\Tools\
  VSINSTALLDIR=c:\Program Files (x86)\Microsoft Visual Studio 10.0\
  windir=C:\Windows
  WindowsSdkDir=C:\Program Files (x86)\Microsoft SDKs\Windows\v7.0A\
Project "C:\tmp\test\Build.proj" (1) is building "C:\tmp\test\External.vcxproj" (2) on node 1 (default targets).
Build:
  nmake /e /f "External.mak"

  Microsoft (R) Program Maintenance Utility Version 10.00.30319.01
  VAR_TEST is defined.
  Copyright (C) Microsoft Corporation.  All rights reserved.

Done Building Project "C:\tmp\test\External.vcxproj" (default targets).
Done Building Project "C:\tmp\test\Build.proj" (BuildIt target(s)).

Build succeeded.

Result after .NET 4.5 is installed

C:\tmp\test>msbuild Build.proj /t:BuildIt
Microsoft (R) Build Engine version 4.0.30319.17929
[Microsoft .NET Framework, version 4.0.30319.17929]
Copyright (C) Microsoft Corporation. All rights reserved.

Build started 2012-10-23 09:18:12.
Project "C:\tmp\test\Build.proj" on node 1 (BuildIt target(s)).
BuildIt:
  set
  ...
  Framework35Version=v3.5
  FrameworkDir=C:\Windows\Microsoft.NET\Framework\
  FrameworkDIR32=C:\Windows\Microsoft.NET\Framework\
  FrameworkVersion=v4.0.30319
  FrameworkVersion32=v4.0.30319
  USERPROFILE=C:\Users\a.user
  VAR_TEST=C:\Defined.txt
  VCINSTALLDIR=C:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\
  VS100COMNTOOLS=c:\Program Files (x86)\Microsoft Visual Studio 10.0\Common7\Tools\
  VSEDEFLOGDIR=C:\ProgramData\McAfee\DesktopProtection
  VSINSTALLDIR=c:\Program Files (x86)\Microsoft Visual Studio 10.0\
  windir=C:\Windows
  WindowsSdkDir=C:\Program Files (x86)\Microsoft SDKs\Windows\v7.0A\
Project "C:\tmp\test\Build.proj" (1) is building "C:\tmp\test\External.vcxproj" (2) on node 1 (default targets).
Build:
  nmake /e /f "External.mak"

  Microsoft (R) Program Maintenance Utility Version 10.00.30319.01
  VAR_TEST is not defined.
  Copyright (C) Microsoft Corporation.  All rights reserved.

Done Building Project "C:\tmp\test\External.vcxproj" (default targets).
Done Building Project "C:\tmp\test\Build.proj" (BuildIt target(s)).

Build succeeded.

It the first example it thinks that VAR_TEST is defined and in the second it is not. So question is, what is the difference now when .NET 4.5 is installed?

BR Ulf


Semi-Urgent (due to frustration) Deployment Project - Does not overwrite files

$
0
0

So,

Quite simply, I have a whole slew of VisualStudio templates (and wizards) that need to be installed for them to work within Visual Studio.

After design everything and testing everything, I created an Install Project (deployment project, whatever).  It worked.

Now, I have made some changes to the wizards/templates and such and needed to rebuild the solution (including the deployment project) so that, run new installer, and voila, you are using the new template and the new wizards.

Install Folder is the PrivateAssemblies folder as in: [Program Files]\Microsoft\[VS Dir]\COmmon7\ProjectAssemblies
(I know those [] values are not exact, but who cares at this point as that part works fine, not caring to much given my EXTREME frustration. (expletives out the wazoo for the last hour))

So, I part of my Deployment project is a folder "CSharpItems", which contains the updated vstemplate and cs files in ZIP format (as they are supposed to be for templates) all of them dated today, with the approriate 1.1.25.25 version for the wizard dll references.
DefaultLocation is set to: [ITEMTEMPLATEPATH]\Visual C#\JR's Code
Property is set to: ITEMTEMPLATESFOLDER

[ITEMTEMPLATEPATH] is populated by a Launch Condition that searches the registry for the User Template Path.

I created a "TextBox(A)" dialog, and set the "property" to ITEMTEMPLATESFOLDER to test this value, and found that it points to the correct location on my hard drive.

I run the install.  And the files in the ITEMTEMPLATESFOLDER location are still dated last year, and the vstemplate wizard dll versions are still 1.1.7.7

i looked everywhere for the newer vesions, and finally found them in the "Application Folder" location. So i deleted those and tried again, and all subsequent installs have not installed those ZIP files.

Finally, I deleted the old "JR's Code" folder from the Item Templates folder on my hard drive, uninstalled the "installer" and voila the next install, worked right.  How do I tell the deployment project that ALL files MUST be overwritten with the file in the package. No comparison, no "idiot brained thinking" just delete and overwrite EVERYTHING?

Additionally, I decided to change the "Title" of the installer, and guess what? the Name in the "Programs and Features" for uninstallation of the package still read "GI.TemplateInstaller.V1" WTF?  How do I change the name that appears in the Programs and Features screen?

Thanks

Jaeden "Sifo Dyas" al'Raec Ruiner



"Never Trust a computer. Your brain is smarter than any micro-chip."
PS - Don't mark answers on other people's questions. There are such things as Vacations and Holidays which may reduce timely activity, and until the person asking the question can test your answer, it is not correct just because you think it is. Marking it correct for them often stops other people from even reading the question and possibly providing the real "correct" answer.

How to access "Active solution platform" through a macro?

$
0
0

Hi,

I want to access the name of the active *solution* platform through a macro, as I want to target different Windows-Version by specifying the platform.

I know that I could duplicate the *project* configurtaions and assign them to the different targets. But

1. I want to control the target by using property-sheets

2. I have more than 50 projects with at least two configs for each, thus duplicating the configurations is not an option

Please provide a macro for accessing the active *solution* platform.

Thanks

Tobias

VS2012 solution: selecting projects depends on OS(Windows 7, Windows 8)

$
0
0

hi,

I want to know more information regarding VS2012 solution. Is there any possibility for selecting projects differently in same .sln file on Windows 7 OS and on Windows 8 OS?

Example:

test.sln is having (1) C++ AMP project say amp1.vcxproj and (2) OpenCL project say ocl2.vcxproj,

I need both projects 1 & 2 to be under test.sln on Windows 8 and only project 2 to be under test.sln on Windows 7. How to make the test.sln to support the above situation?

regards,

Narayana.

c# control sound coming from left/right speaker?

$
0
0

Hello,

Is it possible to control the sound in c# code in order to switch the sound source between left and right speaker? I failed to find such information online.

Thank you.


Post Build Events fail with Code 1

$
0
0

I have a VS2010 compilation issue.
I have recently been upgraded to a new PC (which is 64 bit - Windows 7) :) But I cannot compile my Dot Net Apps :(

It seems to be a problem with code we have in the Post Build Event:
In fact even if I change the code (in the Post-build event command line) to Echo, it still falls over with the same error message:

The error message on build is:
Error 1 The command "echo" exited with code 1. HelloWorld

Note this seemed to compile OK when run as an Administrator (authority
issue?)

If there is no post-build event the app builds successfully.

Do you have any idea what I can do to successfully compile with a post-build event?

Your assistance will be greatly appreciated.


unable to debug VB.net application

$
0
0

I have an large application in VB.net and when i run in debug mode some pages donot enter debug mode while other enter.

We are using VS2010 with TFS.

Please help I am new in team.

How to list the dependency of Incremental Build in MSBUILD

$
0
0

Hi

I am looking for a way to list the impacted DLLs/Lib/Exe when I make a change to a given file of type CS or CPP. I guess MSBUILD does know this dependency. Is there a way to find out this dependency without actually running the build.


Distance Calculator for a quote

$
0
0

I am designing an application for a booking system, which requires to provide a quote in relation to distance, this is possible to program on visual studies, where do I begin? 

How do I turn off static analysis in visual studio 2012?

$
0
0

I have large c++ solution that I need to build for XP Compatablity. I installed the vs 2012 update 3 and set platform toolset for "Visual Studio 2012 - Windows XP (v110_xp)" I builds in debug mode but in relase I get error:

Error 3 error MSB8026: Static analysis is not supported with the current platform toolset. C:\Program Files\MSBuild\Microsoft.Cpp\v4.0\V110\Platforms\Win32\PlatformToolsets\v110_xp\Microsoft.Cpp.Win32.v110_xp.targets 28 5 My Project name

I don't want static analysis and want to turn it off.  I'm sure it's anice thing but right now it's in the way thank you.


Dave just dave, I am also justdave but it did'nt beleive me so I had to become my own descendant

Issues with Compiling CUDA-FIles in VS 2010 Professional: Error MSB3721

$
0
0

Hi,

I just tried to compile a .cu file with Microsoft Visual Studio 2010 Professional.

With .cpp files everything works fine, but when i enable the CUDA-compiler for a .cu file, VS 2010 gives me the following error:

Error 2 error MSB3721: The command ""C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v5.5\bin\nvcc.exe" -gencode=arch=compute_10,code=\"sm_10,compute_10\" --use-local-env --cl-version 2010 -ccbin "C:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\bin"  -I"C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v5.5\include" -I"C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v5.5\include"  -G   --keep-dir Debug -maxrregcount=0  --machine 32 --compile -cudart static  -g   -DWIN32 -D_DEBUG -D_CONSOLE -D_UNICODE -DUNICODE -Xcompiler "/EHsc /W3 /nologo /Od /Zi /RTC1 /MDd  " -o Debug\kernels.cu.obj "\S:\s18004\documents\visual studio 2010\Projects\cudaprojekt12\cudaprojekt12\kernels.cu"" exited with code 2. C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\BuildCustomizations\CUDA 5.5.targets 592 10 cudaprojekt12

Does someone know how to fix or workaround that?

Thank you in advance,

Liona

Can you build a vdproj file with MSBuild yet?

$
0
0

I am trying to build a vdproj file that creates an MSI intaller. It works through Visual Studio, but when I run it using MSBuild (in .net 4.0.30319), I get the following:

Build started 8/26/2013 10:10:30 AM.
Project "c:\Documents and Settings\Administrator\My Documents\Visual Studio 200
8\Projects\BAMLive\Setup3\Setup3.vdproj" on node 1 (build target(s)).
c:\Documents and Settings\Administrator\My Documents\Visual Studio 2008\Project
s\BAMLive\Setup3\Setup3.vdproj(1,1): error MSB4025: The project file could not
be loaded. Data at the root level is invalid. Line 1, position 1.
Done Building Project "c:\Documents and Settings\Administrator\My Documents\Vis
ual Studio 2008\Projects\BAMLive\Setup3\Setup3.vdproj" (build target(s)) -- FAI
LED.


Build FAILED.

"c:\Documents and Settings\Administrator\My Documents\Visual Studio 2008\Projec
ts\BAMLive\Setup3\Setup3.vdproj" (build target) (1) ->
  c:\Documents and Settings\Administrator\My Documents\Visual Studio 2008\Proje
cts\BAMLive\Setup3\Setup3.vdproj(1,1): error MSB4025: The project file could no
t be loaded. Data at the root level is invalid. Line 1, position 1.

    0 Warning(s)
    1 Error(s)

Time Elapsed 00:00:00.54

I saw a bunch of post from 2009 that stated MSBuild did not support .vdproj. Does it now?

Thanks,

Release mode and APM\ "InProc Debugger"

$
0
0

We have automated build project using nant which intenally call MSBuil.exe and we pass configuration as release.

As per information available on internet "Release" mode also build pdb files in optimized mode. So when any error occurs in your code it will tell you extact error and line number.

Till this time we are okay however when looked further using some application performance monitor tool like "DynaTrace" it shows some suspension time in "InProc Debugger".

Which means .Net spending some supension time in debugger and here we found lot of issues. As per analysis code spending 10%-50% time of actual execution in this kind of suspension.

Please let me know if anyone have idea why our exuecting process spending this much of time in "InProc Debugger".


-Mayank

Viewing all 2763 articles
Browse latest View live


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