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

Visual Studio is not loading projects created in Visual Basic language

$
0
0

When I try to load the error message appears:

"One or more projects in the solution were not loaded correctly.
For more details, see the output window. "

In the outgoing message says:

"C: \ Documents and Settings \ Philip \ My Documents \ Visual Studio 2010 \ Projects \ Visual Basic \ 1.0 Manager \ Manager 1.0 \ 1.0.vbproj Manager: Error:". 1.0.vbproj Manager "Unable to read the project file
c: \ WINDOWS \ Microsoft.NET \ Framework \ v4.0.30319 \ Microsoft.VisualBasic.targets unable to load the project file. The root element is missing. "

It was in the specified folder but could not solve anything, thank you could ever help me.


Error dotfuscating in the post-build process

$
0
0

Hi,

I'm trying to run dotfuscator in the VS2010 post build step and have followed this recipe:

http://msdn.microsoft.com/en-us/library/hh977082(v=vs.107).aspx

but when I reach the post build step I get an error saying:

"configuration file specified twice"

I only have one configuration file present in the root of the project folder.

Can someone please explain what might cause this error?

Thanks
Thomas, Retune-DSP

Signing an assembly in MSBuild (VS/TFS 2012)

$
0
0

Hi,

I was asked to implement assembly signing or strong naming. Please help me understand the steps that I need to perform to confidently say that the assembly signing is implemented. Also I will be using MSbuild to automate the build process.

MSBuild should alos be able to implement this assembly signing. 

please help me with the detailed steps on what needs to be done. assume I dont know anything and provide answers please.

Regards

Praka


Prakash

VIX compile error

$
0
0

Hi,

I try to build VIX 1.13 on Windows 7 with Visual Studio 2013, however, the compile failed with error of unknown symbol symbol __forceCRTManifestCUR, can anyone help on what went wrong? 

Thanks

Michael


c:\Program Files (x86)\VMware\VMware VIX\Samples>nmake /f nMakefile

Microsoft (R) Program Maintenance Utility Version 12.00.21005.1
Copyright (C) Microsoft Corporation.  All rights reserved.

        cl callbackProc.c /I "C:\\Program Files (x86)\\VMware\\VMware VIX\\" /DD
EBUG /MTd "C:\\Program Files (x86)\\VMware\\VMware VIX\\vixAllProductsd.lib" ker
nel32.lib user32.lib advapi32.lib ole32.lib oleaut32.lib ws2_32.lib shell32.lib
/Zi /link /DEBUG /INCREMENTAL:no /NODEFAULTLIB:libcmtd.lib
Microsoft (R) C/C++ Optimizing Compiler Version 18.00.21005.1 for x86
Copyright (C) Microsoft Corporation.  All rights reserved.

callbackProc.c
Microsoft (R) Incremental Linker Version 12.00.21005.1
Copyright (C) Microsoft Corporation.  All rights reserved.

/out:callbackProc.exe
/debug
/DEBUG
/INCREMENTAL:no
/NODEFAULTLIB:libcmtd.lib
callbackProc.obj
"C:\\Program Files (x86)\\VMware\\VMware VIX\\vixAllProductsd.lib"
kernel32.lib
user32.lib
advapi32.lib
ole32.lib
oleaut32.lib
ws2_32.lib
shell32.lib
vixAllProductsd.lib(utf_impl.obj) : error LNK2001: unresolved external symbol __
forceCRTManifestCUR
vixAllProductsd.lib(uarrsort.obj) : error LNK2001: unresolved external symbol __
forceCRTManifestCUR
vixAllProductsd.lib(utrace.obj) : error LNK2001: unresolved external symbol __fo
rceCRTManifestCUR
vixAllProductsd.lib(icuplug.obj) : error LNK2001: unresolved external symbol __f
orceCRTManifestCUR
vixAllProductsd.lib(ucnv2022.obj) : error LNK2001: unresolved external symbol __
forceCRTManifestCUR
vixAllProductsd.lib(uenum.obj) : error LNK2001: unresolved external symbol __for
ceCRTManifestCUR

AzureContinuousDeployment.11.xaml - Failure packaging

$
0
0

Hi,

I am trying to set up a build using the AzureContinuousDeployment.11.xaml template as the starting point. My scenario is a very simple one, a single web role, a unit test project, and a second test project that runs after deployment to verify specifications using specflow.

I had all of this working perfectly on sunday night, and the only change since was a check in of code by a colleague - the code he checked in is just built i.e. it doesn't contribute to the build process.

I am having an issue at the point MSBuild is run. The last action that seems to execute before the failure is for the web role :

Built $/Data Services Layer/Audit/Main/Source/Code/Audit/Audit.csproj for default targets

This runs for 26 seconds before moving on to the next step (which I can only assume is the way the Azure template packages and deploys a service as I am not using NuGet for anything other than using packages in my project): 

Built $/Data Services Layer/Audit/Main/Source/.nuget/NuGet.targets for target(s) _DownloadNuGet.

this then results in errors happening in my build as such:

C:\a\src\Source\.nuget\NuGet.targets (97): Unable to find 'C:\a\src\Source\Code\Audit\bin\Audit.dll'. Make sure the project has been built.
 C:\a\src\Source\.nuget\NuGet.targets (97): The command ""C:\a\src\Source\.nuget\NuGet.exe" pack "C:\a\src\Source\Codh:e\Audit\Audit.csproj" -Properties "Configuration=Debug;Platform=AnyCPU" -NonInteractive -OutputDirectory"C:\a\bin" -symbols" exited with code 1.


This is actually the second time this problem has occurred - I managed to get it working again after the first time it broke by uploading all my NuGet packages into source rather than using NuGet restore, and recreating the cloud service & related deployment configuration etc again from scratch. I have no idea what part of this fixed the problem but it started building again.

Has anyone got any ideas with this one?

Even though logging is set to the diagnostic setting I am not getting anything more than the above error to go by and I'm a little stumped. It is particularly annoying that this has happened twice so I'd like to know exactly what has caused it as I don't like it when things work and then suddenly stop working - makes me nervous.

Anyway - any help would be greatly appreciated to stop my poor head from hurting any more.

Thanks

Andy

Publishing website with assemblyinfo.cs in vs2012 not working

$
0
0

Hi,

We are migrated form vs2008 to vs2012 directly. in vs2008 we used assemblyinfo.cs to version all our dlls. But where as when we publish in vs2012 using publish profile every time publish is creating an assemblyinfo.cs its own with the version number as 1.0.0.0

vs2008 approach:

We have 5 solutions with multiple projects in each, one of them has our website. this website is depend on all the remaining solutions. So before we start publishing we build all the solutions by mentioning the version in the assemblyinfo.cs except the one which has website. After completing building of all we publish our website with the same assemblyinfo.cs so that all the dlls have the same version.

vs2012 Issue:

But where as in vs2012 even though if we mention the version number in assemblyinfo.cs file the publish is again creating its own assemblyinfo.cs in temporary directory used for publish with the version number as 1.0.0.0..

MSBuild for VS2005 project

$
0
0

Hi,

I am using VS/TFS 2012 and setting up the automatd build process with MSbuild.

I have one of the projects in Vs2005 version and when I try to run a build definition, I am getting the below error.

Build server has 2005 installed and the solution is building fine when I build form VS2005 IDE in build sever.

I have passed the VCBuild path in MSbuild command line argument and that gave me the below error.

"VCBuild.exe" exited with code -1.

Please help me as what could be the reason for this error.

Praka


Prakash

Inconsistent COM Reference in Automated Build

$
0
0

This is a cross-post from the TFS Build forum.  I'm beginning to wonder if the problem I am experiencing is MSBuild related rather than TFS related.  The original thread is located at:  

http://social.msdn.microsoft.com/Forums/vstudio/en-US/a531d18a-2b5a-4aa8-ba45-c007e824c566/inconsistent-com-reference-in-automated-build?forum=tfsbuild

My original post follows:

I am attempting to automate the build for a fairly complex application.  The application uses a variety of technologies from VB6 COM components through to .NET 4.5 applications (both C# and VB).  I have run in to a strange issue and am looking for ideas.

The build used the MSBuild Extension Pack to allow automation of the VB6 COM components.  This is all working as expected, with all DLLs created and registered properly.  There are several .NET projects that reference the VB COM objects, but I am seeing a lot of inconsistencies around these references.

  • A VB6 project with dependencies on another VB6 project works properly.
  • A C# .NET project with dependencies on a VB6 object seems to work properly.
  • A VB.NET project with dependencies on a VB6 project fails to resolve COM references, but not in all cases.

To clarify, suppose I have two VB COM components (OBJ_A and OBJ_B).  I can reference these objects in both VB6 projects and C# .NET projects and all references are resolved properly.  In a VB.NET project however, OBJ_A might resolve properly while OBJ_B fails with an error like:

C:\Windows\Microsoft.NET\Framework64\v4.0.30319\Microsoft.Common.targets (2015): Could not resolve COM reference "some-vb6-guid" version 1.3. Object reference not set to an instance of an object.

  • The build server has VB6 installed, but does not have Visual Studio installed.
  • All references resolve properly on my local development machine.
  • I have manually verified that all the COM objects referenced have been built and registered properly (they are actually built as a part of a single TFS build).
  • I have tried manually editing the VB.NET project file and replacing the <ComReference> with a <ComFileReference>.  Although the build output looks a little different as dependencies are resolved, this fails with the same error.

I am at a bit of a loss as to what might be causing this, or what other approaches I can take.  I am looking forward to any ideas!

Thanks,

M


How to get rid of the certificate requirement??

$
0
0

Hi all,

I have a solution written in VS 2012 (and I tried 2013, same problem).  It is used by one customer.  I make a change, publish a build, then send it to them as needed.

Today, I made a requested change and tried to publish it.  Instead, it said it failed because no certificates were found causing an error to occure while signing.

I understand the benefit of digitally signed code.  If I were giving this to more than one client or if any one of a number of other situations were the case, I would be happy to go out and buy one.  But none of those apply. 

How to I tell VS to just not worry about it for this project and let me generate the code to make this client happy?

Thanks!


Different behavior in VS 2008 and VS 2012: Compiling a solution with MSBuild Task

$
0
0

Hi,

I'm observing some strange build behavior after having migrated a VS2008 solution to VS2012 (standard one-way-migration that is done when opening an "old" solution with VS2012). While the build process runs successfully in VS2008, the process appears to be trapped in some sort of deadlock/infinite loop.

Both solutions (stripped down to the essential things) are available here.

Here's the logic of the solution in VS2008:

  • Two projects: BuildProject and ClassLibrary1
  • The BuildProject.csproj has been edited manually
    - DefaultTarget = CustomBuild
    - CustomBuild-Target: Call MSBuild-Task for the solution.
    - So, the BuildProject itself has no contents. It is intended to execute some custom MSBuild actions when being built, and these actions include the building of the solution
    - Note that in Solution's Configuration Properties the Build option has been unchecked for BuildProject (otherwise - not surprisingly - VS would detect a circular dependency)

When I build the BuildProject in VS2008, the process completes and a built ClassLibrary1.dll can be found at the according target directory. 

When I build the BuildProject in VS2012 (after one-way-migration), the Build output window remains empty and VS indicates an ongoing build process in its status bar. The ClassLibrary1 will not be built. When I cancel the build after a while, the outputs of the Message task included in the CustomBuild target will flushed to the output window.



Interesting: when I use the MSBuild.exe (.net v4.5) at command line to build the BuildProject (migrated by VS2012)m everything works fine. 

Please note, that I'm keen on getting the backgrounds for this weird behavior. I'm pretty much aware that the CustomBuild logic might appear useless to others and that workarounds might be found that include changing the whole logic of the CustomBuild Target. But my question tends to be investigative and I hope someone out there has an explaination of what's going on here and what changes to the build process in VS2012 caused this behavior. 

Regards,
 adarjo

Error to use a section registered as allowDefinition='MachineToApplication' beyond application level in VS2010

$
0
0
I opened with Visual Studio 2010 a solution with 3 subfolders. Onewebsite containing files aspx and cs and the web.config. One WSDL web reference that contains XML files as well as app.config files. And one folder containing cs classes and acsproj file.

I didn't develop the solution. When I try to build the application I get the following error.

Error to use a section registered as allowDefinition='MachineToApplication' beyond application level

I tried to move the web.config (or tjust the configuration part) in the root directory, I tried to modify the authorization type (set to Windows, I tried to set to None). No success. Anybody might help? Thanks

Microsoft.WebSite.Publishing.targets _ResolveAssemblyReferencesWithRefreshFile Copy Condition Bug

$
0
0

I have been working on getting my build server to publish a Web Site project and when the attempt is made to precompile it with aspnet_compiler.exe it complains of not being able to find an assembly. That assembly is referenced with a .dll.refresh file in the sites /bin. Looking at the location where the files were copied to be compiled (passed to aspnet_compiler.exe with the -p flag) the assembly isn't in the bin directory.

After digging around for awhile I found the target that is responsible for copying these assemblies inside the Microsoft.WebSite.Publishing.targets file called _ResolveAssemblyReferencesWithRefreshFile. It has a copy task that appears to copy the files indicated by the .dll.refresh file only if the reference does not exist.

<Copy SourceFiles="@(References->'%(FullPath)')"
DestinationFolder="$(_FullSourceWebDir)\Bin\"
Condition="!Exists('%(References.Identity)')"
ContinueOnError="true"
SkipUnchangedFiles="true"
Retries="$(CopyRetryCount)"
RetryDelayMilliseconds="$(CopyRetryDelayMilliseconds)"/>

I edited out the ! operator in the condition and my build runs fine now. However I haven't been able to locate anyone else having the same issue, which leads me to believe that the issue is still in my configuration and not a targets file published by Microsoft. But I cant see how that condition would ever actually result in copying an assembly.

So did I find my bug, or do I need to keep looking?


Task could not find "LC.exe" error

$
0
0

Hello, 

I had to restore my windows 7 OS. When I did so, I re-installed VS20012 with no errors.  But, when I opened an existing project and tried to compile it, I received this error: 

Task could not find "LC.exe" using the SdkToolsPath "" or the registry key "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Microsoft SDKs\Windows\v8.0A\WinSDK-NetFx40Tools-x86". Make sure the SdkToolsPath is set and the tool exists in the correct processor specific location under the SdkToolsPath and that the Microsoft Windows SDK is installed.  Also, if I create a new project and try to compile it, I don't get this error message.

Any ideas on how to fix this error?

CoreLabel target fails because of the wrong Scope

$
0
0
I'm trying to perform a build out of a new Team Project. The branch was merged from a different Team Project. Now whenenver I build this branch I'm getting a scope of the other Team Project and it fails because nothing exists there. It seems to have the correct folder and branch, just the wrong $(TeamProject). So it's essentially looking for $(TeamProject)\Directory\Branch and not finding it because $(TeamProject) is wrong. I tried overriding the TeamProject to be the correct one, but it hasn't proven fruitful. Any help would be great! Thanks.

custom build rule for proc in vs2010?

$
0
0

Hi.
I would like to ask how can i custom build rules for pro*c for vs2010 professional?
I have read the article "Quick help on vs2010 custom build rules".. but i dont understand those codes..
I cant compile .pc file to .cpp files.. 
Thanks~


VS 2010 - error MSB4018: System.IO.IOException: Illegal operation attempted on a registry key that has been marked for deletion.

$
0
0

I got this message while I'm trying to build.

Also, I got message error MSB4018: The "SetOffice2007AddInRegistration" task failed unexpectedly.

What's the error and how to fix it?

Build a website using Msbuild TFS 2012

$
0
0

Hi,

I have a website project that I need to build using MSBUild TFS 2012. This website has a solution file and I have selected that solution ain the items to build in process tab and queueed the build. But I didnt get any files in output folder except logs. why ? 

Am i missing anything?

Please suggest.

Regards,

Praka


Prakash

TFS MSBuild and wix

$
0
0

Hi,

We are currently using TFS2013 and MSBuild for our build system. We recently migrated from TFS2012 where we had multiple wix projects using wix 3.7 and had no issues in building out the solution(s) and associated msi's. After we migrated to TFS2013, we are having an issue building the wix projects and so far, nothing we have done (as in change wix versions to 3.8, and the non-release 3.9. and 4.0, placed static references to libraries in the .wixproj) has changed the result. Below is the error we are receiving (using wix 3.9, but same error exists with 3.7 -->)

C:\Program Files (x86)\MSBuild\Microsoft\WiX\v3.x\wix2010.targets (1279): The "CreateProjectReferenceDefineConstants" task could not be loaded from the assembly C:\Program Files (x86)\WiX Toolset v3.9\bin\\WixTasks.dll. Could not load file or assembly 'Microsoft.Build.Utilities, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' or one of its dependencies. The system cannot find the file specified. 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.

Thanks,

Dean

Unicode commands

$
0
0

I have a custom build step on a .txt file with a command that includes cyrillic characters.  But it seems Visual Studio cannot execute it correctly.  Is this supposed to work?  I've also tried to save my vcproj file as UTF-8 or UTF-16 but it makes no difference.  The characters show correctly in the property dialog, but when executed, the output window shows "?" characters in place of the cyrillic characters.  How do I make this work?

Where is Visual studio 2012 Setup project template?

$
0
0

We did lot of window form destop and window service deployments, but these projects are removed in visual studio 2012.  How should we do this now? and what is the purpose of removing these templates?

I've been using install shield in the past, they are license nightmare. I just don't want to go back there again.

Viewing all 2763 articles
Browse latest View live


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