user55473
user55473

Reputation:

Can you develop using .NET 3.5 SP1 and run under just .NET 3.5

Can I develop a website which utilizes ADO .NET Entities in the .NET Framework 3.5 SP1 and then deploy it on another machine with just the .NET 3.5 framework?

Upvotes: 1

Views: 445

Answers (4)

Nick Berardi
Nick Berardi

Reputation: 54864

Yes you can do this. Right click on your references and go to properties. Set "Copy Local" to "True". You will essentially be deploying .NET SP1 assemblies in your local bin instead of using what is stored in the GAC.

Upvotes: 0

Jon Skeet
Jon Skeet

Reputation: 1502176

No. Your code will be referencing the Entity Framework code, and calling into it. That will fail when you try to run it on a machine which doesn't have the Entity Framework.

I also wouldn't suggest just including "extra" DLLs - getting in a state where you're using some code from 3.5 and some from 3.5SP1 sounds like a recipe for disaster to me.

Upvotes: 8

Henk
Henk

Reputation: 704

Perhaps if you include the dll's that SP1 puts in the GAC (like system.web.dynamicdata for example) during setup. Normally these wouldn't be copied into your bin cause they are in the GAC.

Best thing would be to upgrade the machine to SP1, but I guess that is not an option..

Upvotes: 0

Dean
Dean

Reputation: 65

Properties of your project and then target framework maybe?

Upvotes: 0

Related Questions