473,698 Members | 2,196 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Problem with MSBuild and Warning Notification

I have WinXP Pro SP2 and VS2005 SP1.

I'm converting my projects from VS2003 to VS2005 and I receive a lot of
warnings in several projects. For example, to one of my projects (for
example MyProject.vbpro j) I receive the following result in the command
prompt:

Build succeeded:
....
.... (a lot of warnings)
....
95 Warnings(s)
0 Errors
Time elapsed 00:00:00.61

But, I'm creating and application in VB2005 that use MSBuild of the
following way:

MyProcess = New Process
MyProcess.Start Info.FileName = "..\..\msbuild. exe"
MyProcess.Start Info.Arguments = "MyProject.vbpr oj /t:Rebuild
/p:Configuration =Release"
MyProcess.Start Info.CreateNoWi ndow = True
MyProcess.Start Info.UseShellEx ecute = False
MyProcess.Start Info.RedirectSt andardOutput = True
MyProcess.Start ()
MyProcess.WaitF orExit()

When I run my application the program stops in the instruction WaitForExit()
and not responding, but if I change the properties of MyProject.vbpro j and
disable all the warnings my application works.

Please, help me.
Nov 6 '07 #1
1 2052
I found the solution to my problem...

After of the instruction WaitForExit() I had the instruction: cResult =
MyProcess.Stand ardOutput.ReadT oEnd

I resolved my problem of the following way:

MyProcess.Start ()
cResult = MyProcess.Stand ardOutput.ReadT oEnd
MyProcess.WaitF orExit()

I discovered that my problem was related with the buffer of MyProcess...

More details in:
http://msdn2.microsoft.com/en-us/lib...ut(VS.71).aspx

"Jonathan" wrote:
I have WinXP Pro SP2 and VS2005 SP1.

I'm converting my projects from VS2003 to VS2005 and I receive a lot of
warnings in several projects. For example, to one of my projects (for
example MyProject.vbpro j) I receive the following result in the command
prompt:

Build succeeded:
...
... (a lot of warnings)
...
95 Warnings(s)
0 Errors
Time elapsed 00:00:00.61

But, I'm creating and application in VB2005 that use MSBuild of the
following way:

MyProcess = New Process
MyProcess.Start Info.FileName = "..\..\msbuild. exe"
MyProcess.Start Info.Arguments = "MyProject.vbpr oj /t:Rebuild
/p:Configuration =Release"
MyProcess.Start Info.CreateNoWi ndow = True
MyProcess.Start Info.UseShellEx ecute = False
MyProcess.Start Info.RedirectSt andardOutput = True
MyProcess.Start ()
MyProcess.WaitF orExit()

When I run my application the program stops in the instruction WaitForExit()
and not responding, but if I change the properties of MyProject.vbpro j and
disable all the warnings my application works.

Please, help me.
Nov 6 '07 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
2069
by: Uma Abhyankar | last post by:
Hello All, I was facing an issue with VCBuild on Beta1. Today after shifting to .NET Beta2, it looks like the issue is still not resolved :-( I have to invoke VCBuild through MSBuild on command prompt. I have following issue: Issue: -------- MSBuild can invoke VCBuild internally. However it invokes VCBuild without
1
8781
by: Michael Kremser | last post by:
Hi NG! I have converted a running VS.net 2003 solution to VS.net 2005 Beta 2 (Version 8.0.50215.44) and tried to compile it. This is the code: myScriptingEngine = new MSScriptControl.ScriptControlClass(); myScriptingEngine.AllowUI = false; myScriptingEngine.Language = "VBScript";
1
2363
by: Jianwei Sun | last post by:
I am trying to edit an MSBuild project file in the Visual Studio 2005. I tried to use the Intellisense of the editor, so I reference the xmlns at the first line like this: <Project DefaultTargets="DDTI.Utilities.Clean" xmlns="http://schemas.microsoft.com/developer/msbuild/2003"> When I define some custome property like this in the build file .
0
1099
by: Ian Harding | last post by:
There doesn't seem to be a build or msbuild specific group, so I hope this is a suitable place to ask. If msbuild is run from a command prompt directly on a colution containing C++ project files like this: msbuild mysolution.sln /target:mytarget Then the console output contains nicely colour-coded warning and error output plus build summary. However, I have automated the build of a large multi-solution project
1
1535
by: =?Utf-8?B?TmFkYXYgUG9wcGxld2VsbA==?= | last post by:
Hi everybody, I've got a solution that has several dll projects and a website. For the dll projects I've add a configuration 'debug - no code analysis'. Now for the website I can't create custom configurations... The fact that I can't create different configuration for running with code analysis and without code analysis is irritating, but I could live with it.
0
2543
by: luvic.vangool | last post by:
Hi, I am getting the MSB3422 exception when trying to build a solution with MSBuild. Basically one of the dependencies is a C++ project which is not found when resolving references. The exception says: "The project is either missing from disk or access was denied" I have checked the security permissions - and it all looks fine -
0
1388
by: kaza | last post by:
Hi, I am trying to execute some commands in afterbuild event but they simply wont fire. tried it on two different machines but I could not get it to work thanks hier is my xml code : <!-- To modify your build process, add your task inside one of the
0
2094
by: bill gates | last post by:
I was trying to use msbee to build an old project. I don't want to upgrade to dotnet2.0. Is there any way to get this to compile using DevStudio 2005 using dotnet1.1. ? Build FAILED. BCCOMStream.cs(11,18): error CS0618: Warning as Error: 'System.Runtime.InteropSe rvices.UCOMIStream' is obsolete: 'Use System.Runtime.InteropServices.ComTypes.IS
7
2416
by: shapper | last post by:
Hello, I am working on an ASP.MET MVC Web Application with NET 3.5 in VS 2008. I need to run some extra tasks on this project build so I download MSBuild from http://msbuildtasks.tigris.org/. I installed it but no new project type shows in my VS 2008.
1
8895
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
8861
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
1
6518
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
5860
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
4369
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
4619
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
3046
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
2329
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
2001
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.