Click here to Skip to main content
16,023,339 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I know how to change the Target .NET Framework for each VB.NET project.
I have a solution that has many projects. If I changed one by one, it will take a lot of time. Is there some way I can do it for the whole solution?
Thanks
Posted

1 solution

I don't think you can do all the projects in a solution at once, with a simple right click and set all projects type action.

I would be tempted to do them one at a time, so you can see if any issues crop up, before moving to the next one.

There are macros available that can change all projects; but have not been able to verify this as the link from google is blocked from my work because it is hosted on Wordpress;

http://www.google.com/url?sa=t&source=web&cd=5&ved=0CCgQFjAE&url=http%3A%2F%2Fwiert.wordpress.com%2F2010%2F05%2F21%2Fvisual-studio-2010-macro-to-change-target-framework-version-for-solution-by-scott-dorman%2F&ei=J6VOTMvRHdW7jAeQ-b2oBw&usg=AFQjCNEjsihWXmo4HUcnG0TqeSRync4P2w[^]
 
Share this answer
 
v3
Comments
shujsj2010 27-Jul-10 5:17am    
Hi daveauld,
Thanks for your reply. Do you mean I only change it one by one? It will waste a lot of time. Thanks.
DaveAuld 27-Jul-10 5:26am    
You can use a macro to update this, i have updated the answer to a link, but i cannot verify what is there because it is blocked at work, try it.
shujsj2010 28-Jul-10 2:51am    
Hi daveauld,
Thank you very much. It seems to implement what I want. But I don't know how to use it.
shujsj2010 28-Jul-10 2:52am    
I Download it to my MyMacros folder, open the Visual Studio Macro IDE (Alt-F11) and add it as an existing item to the “MyMacros” project. But I don't know what to do next. I know nothing about VS Macro. Could you help me? Thanks.
DaveAuld 28-Jul-10 2:58am    
From the Tools menu, select Macro Explorer, then look for the macro you want to use, and right click Run.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900