c# - How do I change project references from SQL Server 2005 to SQL Server 2008 during a build? -
i'm building project references sql server 2005 assemblies, have option of building using 2005 or 2008 assemblies.
currently can open each project , change references, i'm looking better way this.
is there easy way i'm missing? if not possible modify these script set using script pre-build?
i don't know if it's best available solution, can implement custom msbuild task reads csproj or vbproject (or other) file , modify depending on msbuild property set target caller.
visual studio projects valid xml files, can use xmldocument or xdocument.
your custom task like:
<changemssqlversion version="2008" files="@(projectfile)" />
Comments
Post a Comment