Remove v3.5 reference?

E

Elliot

How can I know what references I have used in my project? Is it those under
"All Components" in Object Browser? How to remove them?
I am going to downgrade my project from .NET Framework 3.5 to 2.0 by
changing TargetFramework to ".NET Framework 2.0" in Project Properties.
Howerver, the installer still ask the user has to install 3.5 first.
 
J

Jon Skeet [C# MVP]

How can I know what references I have used in my project?

Expand the "references" node in solution explorer.
Is it those under "All Components" in Object Browser?

Not sure - I don't use the Object Browser much.
How to remove them?

Select a reference and hit "Delete" IIRC.
I am going to downgrade my project from .NET Framework 3.5 to 2.0 by
changing TargetFramework to ".NET Framework 2.0" in Project Properties.
Howerver, the installer still ask the user has to install 3.5 first.

Hmm... not sure why that is. I'm not terribly knowledgeable about
installers.

Jon
 
C

christery

Expand the "references" node in solution explorer.


Not sure - I don't use the Object Browser much.


Select a reference and hit "Delete" IIRC.

Ehh, might be an idea to open the project file with notepad and delete
the references that way... (If you cant do it from the IDE)



//CY
 
E

Elliot

I discover a new thing.
I made a new setup project without adding anything in it, the installer also
ask user to install 3.5 in anvance.
 
E

Elliot

Is it that one?

"ExternalPersistence"
{
"LaunchCondition"
{
"{A06ECF26-33A3-4562-8140-9B0E340D4F24}:_09F164BB6F534AE3B0FB7ABC30979DF5"
{
"Name" = "8:.NET Framework"
"Message" = "8:[VSDNETMSG]"
"Version" = "8:3.5.21022"
"AllowLaterVersions" = "11:FALSE"
"InstallUrl" =
"8:http://go.microsoft.com/fwlink/?LinkId=76617"
}
}
}
 
E

Elliot

Will it take effect?
View->Editor->Launch conditions
Select .NET Framework & change version to 2.0.50727?


Elliot said:
Is it that one?

"ExternalPersistence"
{
"LaunchCondition"
{

"{A06ECF26-33A3-4562-8140-9B0E340D4F24}:_09F164BB6F534AE3B0FB7ABC30979DF5"
{
"Name" = "8:.NET Framework"
"Message" = "8:[VSDNETMSG]"
"Version" = "8:3.5.21022"
"AllowLaterVersions" = "11:FALSE"
"InstallUrl" =
"8:http://go.microsoft.com/fwlink/?LinkId=76617"
}
}
}



Ehh, might be an idea to open the project file with notepad and delete
the references that way... (If you cant do it from the IDE)



//CY
 
J

Joern Schou-Rode

Will it take effect?
View->Editor->Launch conditions
Select .NET Framework & change version to 2.0.50727?

I have been fighting with the exact same isuue earlier today, and found
the solution to be two-fold:

1. View > Editor > Launch Conditions, select .NET Framework, set Version =
2.0.50727 in the property window.

2. Right-click setup project > Properties, click the "Prerequisites..."
button, check ".NET Framework 2.0 (x86)", uncheck ".NET Framework 3.5".

Hope this helps :)
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top