473,395 Members | 1,558 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,395 software developers and data experts.

Solution Properties

VJ
I have a VS.NET2003 Project1 under Solution1, for this the Option Strict is
off. It is a huge project and would be impossible to make sure it meets the
Option Strict on conditions. We are developing a new project/sloution in
which Option Strict is On..

Do I have to everytime open each solution, go and change this in
Tools->Options and compile the code?.. Really it is painful to do this..
Anyway out??

VJ
Nov 20 '05 #1
6 946
"VJ" <vi********@yahoo.com> schrieb
I have a VS.NET2003 Project1 under Solution1, for this the Option
Strict is off. It is a huge project and would be impossible to make
sure it meets the Option Strict on conditions. We are developing a
new project/sloution in which Option Strict is On..

Do I have to everytime open each solution, go and change this in
Tools->Options and compile the code?.. Really it is painful to do
this.. Anyway out??


What do you have to do everytime? The Option Strict setting can be changed
in the project properties.
--
Armin

How to quote and why:
http://www.plig.net/nnq/nquote.html
http://www.netmeister.org/news/learn2quote.html

Nov 20 '05 #2
* "VJ" <vi********@yahoo.com> scripsit:
I have a VS.NET2003 Project1 under Solution1, for this the Option Strict is
off. It is a huge project and would be impossible to make sure it meets the
Option Strict on conditions. We are developing a new project/sloution in
which Option Strict is On..

Do I have to everytime open each solution, go and change this in
Tools->Options and compile the code?.. Really it is painful to do this..
Anyway out??


Yes (if you don't write a script to automate that). I prefer specifying
'Option Strict' on per file basis.

--
Herfried K. Wagner [MVP]
<URL:http://dotnet.mvps.org/>
Nov 20 '05 #3
VJ
Thanks guys.. I did not see the property in project properties.. it works
really cool..

VJ

"VJ" <vi********@yahoo.com> wrote in message
news:uA**************@TK2MSFTNGP10.phx.gbl...
I have a VS.NET2003 Project1 under Solution1, for this the Option Strict is off. It is a huge project and would be impossible to make sure it meets the Option Strict on conditions. We are developing a new project/sloution in
which Option Strict is On..

Do I have to everytime open each solution, go and change this in
Tools->Options and compile the code?.. Really it is painful to do this..
Anyway out??

VJ

Nov 20 '05 #4
VJ,
As Herfried suggested, I normally put Option Strict On & Option Strict On at
the top of each source file.

So for your huge project you can add Option Strict On at a source file by
file basis, rather then setting it at the project level.

I tend to prefer the source file level, as its obvious when you open that
source file if the intent is to have Strict & Explicit On or Off. Especially
when the source is shared with others...

Hope this helps
Jay

"VJ" <vi********@yahoo.com> wrote in message
news:uA**************@TK2MSFTNGP10.phx.gbl...
I have a VS.NET2003 Project1 under Solution1, for this the Option Strict is off. It is a huge project and would be impossible to make sure it meets the Option Strict on conditions. We are developing a new project/sloution in
which Option Strict is On..

Do I have to everytime open each solution, go and change this in
Tools->Options and compile the code?.. Really it is painful to do this..
Anyway out??

VJ

Nov 20 '05 #5
Hi VJ,

I like it as well to set "option strict on" as default.

I find the arguments to set that as well in top of the program strange.

I tend to the opposite and set Option Strict Off in top off in my programs
when it is explicitly meant not to use that. That shows that better in my
opinion.

However, I started this to open a debate if someone disagrees with me.

I am always willing to tell that I agree with the other when he has strong
arguments against this.

Cor
Nov 20 '05 #6
VJ
I too believe in having this at the project level, so you can't point write
some stuff that VB otherwise lets you do.. , no more claim of that VB is not
as good as C#. Hey even better you know, we get the equalness of C# plus all
the additional functions... , so I say we get 15% more salary than C#
guys...:-)

VJ

"VJ" <vi********@yahoo.com> wrote in message
news:uA**************@TK2MSFTNGP10.phx.gbl...
I have a VS.NET2003 Project1 under Solution1, for this the Option Strict is off. It is a huge project and would be impossible to make sure it meets the Option Strict on conditions. We are developing a new project/sloution in
which Option Strict is On..

Do I have to everytime open each solution, go and change this in
Tools->Options and compile the code?.. Really it is painful to do this..
Anyway out??

VJ

Nov 20 '05 #7

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

Similar topics

9
by: Patchwork | last post by:
Hi Everyone, I have a design related question (in C++) that I am hoping someone can help me with. It is related to my previous post but since it was pointed out that I was more or less asking...
0
by: David Moore | last post by:
Hello I posted a thread about this a while back, but I can't actually find it again so I can reply to it with the solution I found, so I'm making a new thread and hoping it goes to the top of...
3
by: MikeY | last post by:
Hi Everyone, I am working in C#, windows forms.My question is this. All my button dynamic controls properties are present and accounted for except for the"FlatStyle" properties. I can't seem to...
9
by: Terry E Dow | last post by:
Howdy, I am having trouble with the objectCategory=group member.Count attribute. I get one of three counts, a number between 1-999, no member (does not contain member property), or 0. Using...
0
by: ZMan | last post by:
Scenario: This is about debugging server side scripts that make calls to middle-tier business DLLs. The server side scripts are legacy ASP 3.0 pages, and the DLLs are managed DLLs...
4
by: Problem doesn't solve | last post by:
Hello. I'm having a big problem with asp .net. Initially, when I create a new web applicaction and I try to open an aspx page, I get an error message: It is an error to use a section registered...
0
by: BlueTrin | last post by:
Hi all, In a c# solution, when I right click the solution -> properties If I go in "Configuration Properties", there is only in the menu in the left, 1 item which is "Configuration", and I am...
3
by: Danny | last post by:
Hi I trying to master msBuild but have a problem. I have a solution that I wish to build using msbuild but want to override BeforeBuild/AfterBuild targets for each of the projects. I trying to...
5
by: =?Utf-8?B?U2NhbmJveQ==?= | last post by:
Guyz, I want to remove items from the Solution Explorer. The VBE 2005 help system claims that to do this, you have to:- 1. Select the item you want to remove. 2. On the 'Edit' menu,...
11
by: cmp | last post by:
Hello, If I have a Visual studio project configured to vbuild againts one SDK. How is the normal procedure to build that solution against other different SDK that I have installed after previous...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
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
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
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
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...

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.