Red Gate forums :: View topic - Tip: you MUST restart VS after upgrading SA
Return to www.red-gate.com RSS Feed Available

Search  | Usergroups |  Profile |  Messages |  Log in  Register 
Go to product documentation
SmartAssembly 6
SmartAssembly 6 forum

Tip: you MUST restart VS after upgrading SA

Search in SmartAssembly 6 forum
Post new topic   Reply to topic
Jump to:  
Author Message
Uniwares_AS



Joined: 11 Oct 2007
Posts: 132

PostPosted: Wed Mar 23, 2011 3:20 pm    Post subject: Tip: you MUST restart VS after upgrading SA Reply with quote

Otherwise it will continue to use the old SA MSBuild task, no matter how much you change the version in the .targets file.
Back to top
View user's profile Send private message MSN Messenger
Uniwares_AS



Joined: 11 Oct 2007
Posts: 132

PostPosted: Wed Mar 23, 2011 6:17 pm    Post subject: Reply with quote

And if you have SA5 and SA6 side-by-side installed, then you need to restart VisualStudio everytime you want it to use one or the other build task, seems the first one loaded remains loaded for the rest of the app lifetime, independent of project settings.
Back to top
View user's profile Send private message MSN Messenger
Chris.Allen



Joined: 12 Mar 2009
Posts: 593

PostPosted: Fri Mar 25, 2011 2:34 pm    Post subject: Reply with quote

Thanks- the heads-up is very much appreciated. I am asking our guys what is happening here...
Back to top
View user's profile Send private message
Alex.Davies



Joined: 02 Dec 2008
Posts: 335
Location: Cambridge, uk

PostPosted: Fri Mar 25, 2011 2:38 pm    Post subject: Reply with quote

Yeah, Visual Studio has a limitation where it doesn't detect changes in .targets files in the same way that it does for .csproj files. I've been annoyed by it before.

Having said that, it loads SmartAssembly.exe into the memory of VS when you first use it, so if you've already run a build, the installer should complain that it can't do the install unless you close VS.
_________________
Alex
Developer,
Red Gate .NET Tools
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic All times are GMT + 1 Hour
Page 1 of 1

 
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group