473,403 Members | 2,270 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,403 software developers and data experts.

BOGUS BUILD ERRORS - Possible solutioin

Hi all!

As many of you, I have a big VB.NET solution and quite often get bogus build errors out of the blue.
This isn't declared, that is not a property of some shit and so on...
It's very frustrating and the only solution for me was to reload a solution which takes time...

I've browsed through usenet to find some solution, but nothing...

One of the posts gave me an idea, so I've put together a macro that fixes the problem for me.
The idea is to force the precompiler to scan the entire code and resets the (probable) overflow which causes the idiotic build errors.

Try the macro and let me know if it works for you.
If some of you have some other solution, let me know as well!

:)

Fight the power! ;)
--
-----------------------------
Igor A.
2005 VN800 Classic
From a galaxy far,far away...
Zagreb, Croatia

http://vulcanowners.com/crovn/
http://www.vroc.org/view_profile.php?user_id=18684

Sub Get_Rid_Of_The_Bogus_Build_Errors()
'Author : Igor Apostoloski
'Date : 08.06.2005
'
'If you are getting bogus build errors in your .NET solutions
'which dissapear when you reload solution or close and open
'IDE, try this macro...
'
'Works for me :)
'
'Microsoft can continue to look the other way all it wants as far as I'm concerned!
'
'Thanx to Danny Woolston for the idea!
'http://groups-beta.google.com/group/microsoft.public.dotnet.languages.vb/browse_frm/thread/54beeb73cf254ecf/f2c47cfb4a05f663?q=hack1+%22task+list%22&rnum=1&hl =en#f2c47cfb4a05f663

Dim Props As Properties
Dim PropObj As [Property]
Dim myToken As String = "Remove idiotic build errors and blow me MS!!!"
Try
Props = DTE.Properties("Environment", "TaskList")
For Each PropObj In Props
If PropObj.Name.ToUpper.Equals("COMMENTTOKENS") Then
Dim ar() As Object = PropObj.Value
Dim s As String
Dim cnt As Integer
For cnt = 0 To ar.Length - 1
s = ar(cnt).ToString
If s.StartsWith(myToken) Then
Dim i As Integer = _
CInt(s.Substring(myToken.Length, s.IndexOf(":") - myToken.Length)) + 1
ar(cnt) = myToken & i.ToString & ":2"
Exit For
End If
Next
If cnt = ar.Length Then
ReDim Preserve ar(ar.Length)
ar(ar.Length - 1) = myToken & "0:2"
End If
PropObj.Value = ar
Exit Sub
End If
Next
MsgBox("Can't open Environment -> Task List -> CommentTokens", MsgBoxStyle.Information)
Catch ex As System.Exception
MsgBox(ex.Message, MsgBoxStyle.Critical, "Error")
End Try
End Sub

Jul 21 '05 #1
0 1343

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

Similar topics

2
by: AIM | last post by:
Error in msvc in building inheritance.obj to build hello.pyd Hello, I am trying to build the boost 1.31.0 sample extension hello.cpp. I can not compile the file inheritance.cpp because the two...
15
by: cody | last post by:
We have a huge project, the solutuion spans 50 projects growing. Everytime I want to start the project I have to wait nearly over 1 minute for the compiler to complete building. This is...
10
by: Douglas Buchanan | last post by:
I am using the following code instead of a very lengthly select case statement. (I have a lot of lookup tables in a settings form that are selected from a ListBox. The data adapters are given a...
0
by: Igor | last post by:
Hi all! As many of you, I have a big VB.NET solution and quite often get bogus build errors out of the blue. This isn't declared, that is not a property of some shit and so on... It's very...
5
by: Jon | last post by:
I am constantly getting reports in my task list like these: * 'someObjectName" is not a member of 'someOtherObjectName' * Handles clause requires a WithEvents variable. * Name 'someName' is not...
0
by: Richard Lewis Haggard | last post by:
Does anyone know what's going on? The Task List in a project doesn't seem to be getting completely refreshed. It is holding on to error items that have long since been fixed. C# 2003 Solution...
1
by: Alan Silver | last post by:
Hello, I have a site that uses master pages. To enable simple switching of the master page, and to avoid potential inconsistencies between pages, I set the master page file in the web.config...
9
by: guy | last post by:
VB2005 ASP.NET the application i have been working on for some time has just started to give me a 'Build failed' but it does not display the errors window. if i display the errors window manually...
1
by: Lance Wynn | last post by:
Hello all, I have a strange problem. I have been working on a website, and after finishing a page, I hit Debug, and I am prompted with the message box stating "There were build errors, do you...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
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...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

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.