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

vs2008 question.

Before I download and install 2008, I have a question. One of the
selling points of 2008 is multi-targeting. I work on a team where
everyone uses vs2005. Can I use vs 2008 for development and have it
target .net 2.0 and count on the IDE not to mess up the .csproj and .sln
files, so that my teammates can still use the projects and solutions?

Thanks.
Nov 19 '07 #1
5 1200
No.

VS2008 will put out assemblies that run just fine on 2.0, but it'll tinker
with the solution and project files.

We ran into that where I'm at, and decided to push everyone up to VS2008.

--
Chris Mullins

"Frank Rizzo" <no**@none.netwrote in message
news:%2****************@TK2MSFTNGP04.phx.gbl...
Before I download and install 2008, I have a question. One of the selling
points of 2008 is multi-targeting. I work on a team where everyone uses
vs2005. Can I use vs 2008 for development and have it target .net 2.0 and
count on the IDE not to mess up the .csproj and .sln files, so that my
teammates can still use the projects and solutions?

Thanks.

Nov 19 '07 #2
Frank Rizzo <no**@none.netwrote:
Before I download and install 2008, I have a question. One of the
selling points of 2008 is multi-targeting. I work on a team where
everyone uses vs2005. Can I use vs 2008 for development and have it
target .net 2.0 and count on the IDE not to mess up the .csproj and .sln
files, so that my teammates can still use the projects and solutions?
It will change the solution files in an incompatible way, and change
the project files *somewhat*. I've certainly used projects with both
2005 and 2008, but on a machine with .NET 3.5 installed - I don't know
what happens if you try to use a 2008 project on a machine with only
2.0.

(Also, there's something about MSBuild directories that means it's best
to create the project with 2005, IIRC.)

--
Jon Skeet - <sk***@pobox.com>
http://www.pobox.com/~skeet Blog: http://www.msmvps.com/jon.skeet
World class .NET training in the UK: http://iterativetraining.co.uk
Nov 19 '07 #3
Frank Rizzo wrote:
Before I download and install 2008, I have a question. One of the
selling points of 2008 is multi-targeting. I work on a team where
everyone uses vs2005. Can I use vs 2008 for development and have it
target .net 2.0 and count on the IDE not to mess up the .csproj and
.sln files, so that my teammates can still use the projects and
solutions?
The csproj files differ in 1 location:
<Project DefaultTargets="Build"
xmlns="http://schemas.microsoft.com/developer/msbuild/2003">

vs. the 2008 version:

<Project DefaultTargets="Build"
xmlns="http://schemas.microsoft.com/developer/msbuild/2003"
ToolsVersion="3.5">

I haven't checked the .sln files yet. As it's an attribute, you
probably will be able to load these files into vs.net 2005, but when
you're saving them, it's likely that attribute is gone, so you won't be
able to load them back into 2008 without conversion.

FB
--
------------------------------------------------------------------------
Lead developer of LLBLGen Pro, the productive O/R mapper for .NET
LLBLGen Pro website: http://www.llblgen.com
My .NET blog: http://weblogs.asp.net/fbouma
Microsoft MVP (C#)
------------------------------------------------------------------------
Nov 20 '07 #4
On Nov 20, 9:39 am, "Frans Bouma [C# MVP]"
<perseus.usenetNOS...@xs4all.nlwrote:

<snip>
I haven't checked the .sln files yet. As it's an attribute, you
probably will be able to load these files into vs.net 2005, but when
you're saving them, it's likely that attribute is gone, so you won't be
able to load them back into 2008 without conversion.
There's more than you showed (at least on my box) - there's:

(VS2005)
<Import Project="$(MSBuildBinPath)\Microsoft.CSharp.target s" />

vs

(VS2008)
<Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targ ets" />

That's the bit that's caused me grief before now - using the 2005
version from 2008 works, but not vice versa.

Jon
Nov 20 '07 #5
Jon Skeet [C# MVP] wrote:
On Nov 20, 9:39 am, "Frans Bouma [C# MVP]"
<perseus.usenetNOS...@xs4all.nlwrote:

<snip>
I haven't checked the .sln files yet. As it's an attribute,
you probably will be able to load these files into vs.net 2005, but
when you're saving them, it's likely that attribute is gone, so you
won't be able to load them back into 2008 without conversion.

There's more than you showed (at least on my box) - there's:

(VS2005)
<Import Project="$(MSBuildBinPath)\Microsoft.CSharp.target s" />

vs

(VS2008)
<Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targ ets" />

That's the bit that's caused me grief before now - using the 2005
version from 2008 works, but not vice versa.
Hmm, indeed. Thanks for looking into that, I looked in a simple
project file.

FB

--
------------------------------------------------------------------------
Lead developer of LLBLGen Pro, the productive O/R mapper for .NET
LLBLGen Pro website: http://www.llblgen.com
My .NET blog: http://weblogs.asp.net/fbouma
Microsoft MVP (C#)
------------------------------------------------------------------------
Nov 21 '07 #6

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

Similar topics

1
by: Hans Kesting | last post by:
Hi, I can't get a vs2008 solution to compile. I have copied the source from a (compiling) 2.0 web-application to a new directory (I didn't want to change the old code), and tried to compile...
15
by: =?Utf-8?B?Z3V5?= | last post by:
Is it safe to load VS2008 on a VS2005 dev box? And no - dont talk Virtual PCs that is not the question:-) guy
20
by: Iouri | last post by:
Hi everybody, We are currently using VS2003 and now we are in the porcess of upgrading to the next Visual Studio version. Does somebody have a real life experience with VS2008? My boss wants to...
2
by: Academia | last post by:
I have vs2005 installed on the System disk and vs2008 installed on a different disk. I want to remove VS2005. I read one time about some problem with uninstalling vs2005 after vs2008 is...
0
by: ker_01 | last post by:
I received a copy of VS2008 Standard Edition at a recent MS launch event. I need to test some code for MS Office (Excel) and also update a program I wrote in VS2003 for a mobile device (still to...
3
by: Rick | last post by:
Hello guys!!! I have a little question, i've heard that some people has installed on their machine vs2005 and vs2008, but if you can work vs2005 projects in vs2008 which is the reason to have...
8
by: Frank Hauptlorenz | last post by:
Hello out there, I changed an existing and good working webservice from an wsHttpBinding to an NetTcpBinding. This is working (after trying some time) and has real a better performance! But...
1
by: jersey | last post by:
I have VS2005 Professional. I am unable to install it on my new Vista 64- bit computer. The only reason I wanted to install it was to be able to purchase and install VS2008 Upgrade version. If I...
3
by: =?Utf-8?B?SmFtZXMgV29uZw==?= | last post by:
Hi everybody, There is a fatal error while installing VS2008 SP1 on Vista 64bit Business edition. The last line of error log is Installation failed with error code: (0x80070643) I tried to...
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:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
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
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
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
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
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...

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.