I recently installed the .NET 3.0 framework (behind the time, I know), and
am seeing an issue building it.
Because 3.0 doesn't upgrade csc.exe, I'm still using the 2.0 csc to build
things. Since the assemblies added in 3.0 aren't in the 2.0 directory tree,
their names need to be fully qualified, so I wind up with command lines
like:
csc /r:"c:\WINDOWS\Microsoft.NET\Framework\v3.0\Windo ws Communication
Foundation"\System.Runtime.Serialization.dll ParseXml.cs
Did I miss some way to simplify this, or is that just how it works? 11 1279
Just a small correction about your question: it doesn't relate to
"building", it relates to "compiling". Building is taken care of by
msbuild.exe and is a different than compiling.
As for your compiling, are you using a version of Visual Studio? If so, you
shouldn't have to do any command line work.
"Mike Schilling" <ms*************@hotmail.comwrote in message
news:%2****************@TK2MSFTNGP06.phx.gbl...
>I recently installed the .NET 3.0 framework (behind the time, I know), and am seeing an issue building it.
Because 3.0 doesn't upgrade csc.exe, I'm still using the 2.0 csc to build
things. Since the assemblies added in 3.0 aren't in the 2.0 directory
tree, their names need to be fully qualified, so I wind up with command
lines like:
csc /r:"c:\WINDOWS\Microsoft.NET\Framework\v3.0\Windo ws Communication
Foundation"\System.Runtime.Serialization.dll ParseXml.cs
Did I miss some way to simplify this, or is that just how it works?
On May 12, 11:58*am, "Mike Schilling" <mscottschill...@hotmail.com>
wrote:
I recently installed the .NET 3.0 framework (behind the time, I know), and
am seeing an issue building it.
Because 3.0 doesn't upgrade csc.exe, I'm still using the 2.0 csc to build
things. *Since the assemblies added in 3.0 aren't in the 2.0 directory tree,
their names need to be fully qualified, so I wind up with command lines
like:
csc /r:"c:\WINDOWS\Microsoft.NET\Framework\v3.0\Windo ws Communication
Foundation"\System.Runtime.Serialization.dll ParseXml.cs
Did I miss some way to simplify this, or is that just how it works?
Out of curiosity, why don't you simply install 2008 express?
Ignacio Machin ( .NET/ C# MVP ) wrote:
On May 12, 11:58 am, "Mike Schilling" <mscottschill...@hotmail.com>
wrote:
>I recently installed the .NET 3.0 framework (behind the time, I know), and am seeing an issue building it.
Because 3.0 doesn't upgrade csc.exe, I'm still using the 2.0 csc to build things. Since the assemblies added in 3.0 aren't in the 2.0 directory tree, their names need to be fully qualified, so I wind up with command lines like:
csc /r:"c:\WINDOWS\Microsoft.NET\Framework\v3.0\Windo ws Communication Foundation"\System.Runtime.Serialization.dll ParseXml.cs
Did I miss some way to simplify this, or is that just how it works?
Out of curiosity, why don't you simply install 2008 express?
We have a mixed environment, of which .NET is only a fraction, and thus our
build environment is command-line driven rather than .NET-centric. Nor do I
want to have to install and maintain VS.NET on headless machines used only
to do builds.
Anyway, that all aside, is there a way to simplify these command lines, or
do the assembly names have to be fully qualified?
Mike Schilling <ms*************@hotmail.comwrote:
Out of curiosity, why don't you simply install 2008 express?
We have a mixed environment, of which .NET is only a fraction, and thus our
build environment is command-line driven rather than .NET-centric. Nor do I
want to have to install and maintain VS.NET on headless machines used only
to do builds.
So use MSBuild - create project/solution files with Visual Studio, and
just run MSBuild on those and let it deal with everything.
Anyway, that all aside, is there a way to simplify these command lines, or
do the assembly names have to be fully qualified?
You could add the references to the default response list for csc.
--
Jon Skeet - <sk***@pobox.com>
Web site: http://www.pobox.com/~skeet
Blog: http://www.msmvps.com/jon.skeet
C# in Depth: http://csharpindepth.com
Mike Schilling wrote:
I recently installed the .NET 3.0 framework (behind the time, I know), and
am seeing an issue building it.
Because 3.0 doesn't upgrade csc.exe, I'm still using the 2.0 csc to build
things. Since the assemblies added in 3.0 aren't in the 2.0 directory tree,
their names need to be fully qualified, so I wind up with command lines
like:
csc /r:"c:\WINDOWS\Microsoft.NET\Framework\v3.0\Windo ws Communication
Foundation"\System.Runtime.Serialization.dll ParseXml.cs
Did I miss some way to simplify this, or is that just how it works?
msbuild, Csc task, AdditionalLibPaths + References attributes
or
nant, csc task, references nested element and ant style fileset
Arne
Jon Skeet [C# MVP] wrote:
Mike Schilling <ms*************@hotmail.comwrote:
>>Out of curiosity, why don't you simply install 2008 express?
We have a mixed environment, of which .NET is only a fraction, and thus our build environment is command-line driven rather than .NET-centric. Nor do I want to have to install and maintain VS.NET on headless machines used only to do builds.
So use MSBuild - create project/solution files with Visual Studio, and
just run MSBuild on those and let it deal with everything.
Does MSBuild integrate well with Ant? That's what drives the build (Ant has
build-in tasks to run csc, ilasm, etc.)
>
>Anyway, that all aside, is there a way to simplify these command lines, or do the assembly names have to be fully qualified?
You could add the references to the default response list for csc.
Aha! And how do I do that?
Mike Schilling <ms*************@hotmail.comwrote:
So use MSBuild - create project/solution files with Visual Studio, and
just run MSBuild on those and let it deal with everything.
Does MSBuild integrate well with Ant? That's what drives the build (Ant has
build-in tasks to run csc, ilasm, etc.)
There's an MSBuild task in the Ant .NET library: http://ant.apache.org/antlibs/dotnet/
Alternatively just execute it with exec task.
Anyway, that all aside, is there a way to simplify these command
lines, or do the assembly names have to be fully qualified?
You could add the references to the default response list for csc.
Aha! And how do I do that?
Find csc.rsp in your framework directory and edit it. It's not a
terribly nice way of doing it though - running MSBuild would be much
better.
--
Jon Skeet - <sk***@pobox.com>
Web site: http://www.pobox.com/~skeet
Blog: http://www.msmvps.com/jon.skeet
C# in Depth: http://csharpindepth.com
Mike Schilling wrote:
Jon Skeet [C# MVP] wrote:
>Mike Schilling <ms*************@hotmail.comwrote:
>>>Out of curiosity, why don't you simply install 2008 express? We have a mixed environment, of which .NET is only a fraction, and thus our build environment is command-line driven rather than .NET-centric. Nor do I want to have to install and maintain VS.NET on headless machines used only to do builds.
So use MSBuild - create project/solution files with Visual Studio, and just run MSBuild on those and let it deal with everything.
Does MSBuild integrate well with Ant? That's what drives the build (Ant has
build-in tasks to run csc, ilasm, etc.)
I would find it tempting to use nant because:
- nant supports everything you will need
- the nant syntax is so close to ant that it will be easy to use
Arne
Arne Vajhøj wrote:
Mike Schilling wrote:
>Jon Skeet [C# MVP] wrote:
>>Mike Schilling <ms*************@hotmail.comwrote: Out of curiosity, why don't you simply install 2008 express? We have a mixed environment, of which .NET is only a fraction, and thus our build environment is command-line driven rather than .NET-centric. Nor do I want to have to install and maintain VS.NET on headless machines used only to do builds. So use MSBuild - create project/solution files with Visual Studio, and just run MSBuild on those and let it deal with everything.
Does MSBuild integrate well with Ant? That's what drives the build (Ant has build-in tasks to run csc, ilasm, etc.)
I would find it tempting to use nant because:
- nant supports everything you will need
As I said above, .NET is a fraction of the entire build. Ant does a
fine job of running command-line programs, and I suspect nant does a
poor one of invoking the Java compiler within its active JVM.,
Hi Mike,
Because csc doesn't automatically resolve references to GAC assemblies than
using DOS variables can be the way. For instance, folllowing example simplifying
your input just to use the variables:
@set net20path=%windir%\Microsoft.NET\Framework\v2.0.50 727
@set net30path=%windir%\Microsoft.NET\Framework\v3.0
@set net30wcfpath=%net30path%\Windows Communication Foundation
@set csc=%net20path%\csc.exe
@set refserialization=%net30wcfpath%\System.Runtime.Ser ialization.dll
%csc% /r:"%refserialization%" ParseXml.cs
Regards, Alex
[TechBlog] http://devkids.blogspot.com
MSI recently installed the .NET 3.0 framework (behind the time, I
MSknow), and am seeing an issue building it.
MS>
MSBecause 3.0 doesn't upgrade csc.exe, I'm still using the 2.0 csc to
MSbuild things. Since the assemblies added in 3.0 aren't in the 2.0
MSdirectory tree, their names need to be fully qualified, so I wind up
MSwith command lines like:
MS>
MScsc /r:"c:\WINDOWS\Microsoft.NET\Framework\v3.0\Windo ws
MSCommunication Foundation"\System.Runtime.Serialization.dll
MSParseXml.cs
MS>
MSDid I miss some way to simplify this, or is that just how it works?
MS>
Mike Schilling wrote:
Arne Vajhøj wrote:
>Mike Schilling wrote:
>>Jon Skeet [C# MVP] wrote: Mike Schilling <ms*************@hotmail.comwrote: >Out of curiosity, why don't you simply install 2008 express? We have a mixed environment, of which .NET is only a fraction, and thus our build environment is command-line driven rather than .NET-centric. Nor do I want to have to install and maintain VS.NET on headless machines used only to do builds. So use MSBuild - create project/solution files with Visual Studio, and just run MSBuild on those and let it deal with everything. Does MSBuild integrate well with Ant? That's what drives the build (Ant has build-in tasks to run csc, ilasm, etc.)
I would find it tempting to use nant because: - nant supports everything you will need
As I said above, .NET is a fraction of the entire build. Ant does a
fine job of running command-line programs, and I suspect nant does a
poor one of invoking the Java compiler within its active JVM.,
True, but you can call nant from ant !!
Arne This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics
by: PatchFactory Support |
last post by:
Description:
Professional and easy-to-use patch building environment that can help
you to create instant patch packages for software and file updating.
Generated patch packages are small size...
|
by: Jenta |
last post by:
A World Beyond Capitalism 2005, An Annual International Multiracial
Alliance Building Peace Conference Is Accepting Proposals...
...and Online Registration is now available if you plan to table...
|
by: DrSarang |
last post by:
While building XmlSampleGenerator code from MSDN, I get missing XmlSchemaSet
reference. Here is the screen dump, if needed.
C:\Documents and Settings\Dr Sarang\My Documents\MSDN\XML Sample...
|
by: Kelly B. |
last post by:
Hello
I've created a customer database for the company I work for. Now I've
started on building a work order, which will be related to It.
Basically, I need to build a form to accept shirt size...
|
by: Nick |
last post by:
I am doing some research into building web applications using Object
Oriented techniques. I have found the excellent patterns section on the
MSDN site, but other than that I cannot find any good,...
|
by: thomson |
last post by:
Hi All,
While Iam building my solution, the VS 2003 editor get stucked,
for a few minutes and after sometimes it gets recovered, and the
solution building done,
While building i looked into the...
|
by: tony |
last post by:
Hello!!
I use VS 2003 and C# for all class library except MeltPracCommon.dll which
is C++.NET
The problem is that I get these warnings when building the exe file and use
my class libraries....
|
by: Gawel |
last post by:
Hajo,
I have soulutin with 7 library projects and 2 web projects. When I
change
something in one of the libraries and hit F5 it takes literally 1-2
minutes to start an application.
I've...
|
by: s |
last post by:
I need to develop a multiuser database application to be used by four
people(The number of users are not likely to increase). It is for
storing records of different versions of particular papers. I...
|
by: treble54 |
last post by:
I need to build PHP from source with the pdo_ibm extension and I am
having an issue with it. Firstly, I am using Visual Studio .NET 2003
and I am building PHP from source through the Visual Studio...
|
by: DJRhino |
last post by:
Was curious if anyone else was having this same issue or not....
I was just Up/Down graded to windows 11 and now my access combo boxes are not acting right. With win 10 I could start typing...
|
by: isladogs |
last post by:
The next Access Europe meeting will be on Wednesday 4 Oct 2023 starting at 18:00 UK time (6PM UTC+1) and finishing at about 19:15 (7.15PM)
The start time is equivalent to 19:00 (7PM) in Central...
|
by: Aliciasmith |
last post by:
In an age dominated by smartphones, having a mobile app for your business is no longer an option; it's a necessity. Whether you're a startup or an established enterprise, finding the right mobile app...
|
by: NeoPa |
last post by:
Hello everyone.
I find myself stuck trying to find the VBA way to get Access to create a PDF of the currently-selected (and open) object (Form or Report).
I know it can be done by selecting :...
|
by: NeoPa |
last post by:
Introduction
For this article I'll be using a very simple database which has Form (clsForm) & Report (clsReport) classes that simply handle making the calling Form invisible until the Form, or all...
|
by: Teri B |
last post by:
Hi, I have created a sub-form Roles. In my course form the user selects the roles assigned to the course.
0ne-to-many. One course many roles.
Then I created a report based on the Course form and...
|
by: nia12 |
last post by:
Hi there,
I am very new to Access so apologies if any of this is obvious/not clear.
I am creating a data collection tool for health care employees to complete. It consists of a number of...
|
by: NeoPa |
last post by:
Introduction
For this article I'll be focusing on the Report (clsReport) class. This simply handles making the calling Form invisible until all of the Reports opened by it have been closed, when it...
|
by: isladogs |
last post by:
The next online meeting of the Access Europe User Group will be on Wednesday 6 Dec 2023 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM).
In this month's session, Mike...
| |