English 中文(简体)
Building a VS2008 .NET 3.0 solution without installing .NET 3.5 on build server
原标题:

I am developing using 3.0 and VS 2008.

The problem is my build server does not have 3.5 installed and therefore I cant build the solution as MSBuild for 2.0 will not support the VS 2008 solution file.

There is no easy answer to this besides downgrading to VS 2005.

Any ideas folks?

最佳回答

VS2008 supports C# 3 - you may be using C# 3-specific features while still targeting .NET 2.0.

Is there a strong reason why you can t install .NET 3.5 on the build server? That would be my preferred solution, rather than regressing the version of VS you use.

You could probably automate downgrading the solution/project files - if you re not doing anything complicated, it ll just be a matter of changing version numbers - but it s not great to have the build server using a different compiler to the developers, IMO.

问题回答

Since you have VS2008 projects and solutions you will need to install .NET 3.5 on you build server. Since you can still target .NET 3.0 or .NET 3.5 having .NET 3.5 installed on your build machine should not have any impact on the target environment.

Is it not possible to include the different versions without installing them? In the repository can you add versioned .NET and point the build script to the version(I m thinking like a submodule in Git) you want for that project? So instead of installing .NET 3.0, 3.5, 4.0, etc include the libraries?





相关问题
Anyone feel like passing it forward?

I m the only developer in my company, and am getting along well as an autodidact, but I know I m missing out on the education one gets from working with and having code reviewed by more senior devs. ...

NSArray s, Primitive types and Boxing Oh My!

I m pretty new to the Objective-C world and I have a long history with .net/C# so naturally I m inclined to use my C# wits. Now here s the question: I feel really inclined to create some type of ...

C# Marshal / Pinvoke CBitmap?

I cannot figure out how to marshal a C++ CBitmap to a C# Bitmap or Image class. My import looks like this: [DllImport(@"test.dll", CharSet = CharSet.Unicode)] public static extern IntPtr ...

How to Use Ghostscript DLL to convert PDF to PDF/A

How to user GhostScript DLL to convert PDF to PDF/A. I know I kind of have to call the exported function of gsdll32.dll whose name is gsapi_init_with_args, but how do i pass the right arguments? BTW, ...

Linqy no matchy

Maybe it s something I m doing wrong. I m just learning Linq because I m bored. And so far so good. I made a little program and it basically just outputs all matches (foreach) into a label control. ...

热门标签