msbuild-target

Transforming multiple config files for multiple projects via MsBuildProj file

寵の児 提交于 2019-12-04 17:54:34
I am trying to run multiple commands on a list of files based on a pattern (all files of form *.config under sub directories of a given directory), like so: <?xml version="1.0" encoding="utf-8"?> <Project DefaultTargets="BuildSolution" xmlns="http://schemas.microsoft.com/developer/msbuild/2003"> <UsingTask TaskName="TransformXml" AssemblyFile="$(MSBuildExtensionsPath)\Microsoft\VisualStudio\v12.0\Web\Microsoft.Web.Publishing.Tasks.dll" /> <PropertyGroup> <Configuration Condition=" '$(Configuration)' == '' ">Release</Configuration> <Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform>

SQL Database Project: build different scripts depending on build configuration

ε祈祈猫儿з 提交于 2019-11-30 15:31:05
The problem I want to solve is to build different scripts depending on build configuration. Say we have two instances of SQL Server: Enterprise version with connected Linked servers LocalDb version for offline developing and unit tests Enterprise version has views for Linked servers when LocalDB substitues those views with local tables. Those Linked Server views and local tables have the same names and set of fields. So they are not included in build by default (Build Action = None). Instead they are included in build in BeforeBuild Target of the project file. <Target Name="BeforeBuild">

Adding x86 and x64 libraries to NuGet package

我的梦境 提交于 2019-11-30 01:57:01
I have made a library which depends on CEFsharp which requires to build the library for specific platforms. So no AnyCPU support. Now I want to pack this into a NuGet. As far as I understand you have to put these files into the build folder and have a .targets file which picks the correct dll to reference. So I ended up with a NuGet package looking like this: lib monodroid MyLib.dll xamarin.ios10 MyLib.dll net45 MyLib.dll (x86) build net45 x86 MyLib.dll (x86) x64 MyLib.dll (x64) MyLib.targets I put the following inside of the .targets file: <?xml version="1.0" encoding="utf-8"?> <Project

Adding x86 and x64 libraries to NuGet package

蹲街弑〆低调 提交于 2019-11-28 23:29:27
问题 I have made a library which depends on CEFsharp which requires to build the library for specific platforms. So no AnyCPU support. Now I want to pack this into a NuGet. As far as I understand you have to put these files into the build folder and have a .targets file which picks the correct dll to reference. So I ended up with a NuGet package looking like this: lib monodroid MyLib.dll xamarin.ios10 MyLib.dll net45 MyLib.dll (x86) build net45 x86 MyLib.dll (x86) x64 MyLib.dll (x64) MyLib.targets

MSBuild targets and Visual Studio 2012 issues

二次信任 提交于 2019-11-28 00:36:55
问题 I'm having a hard time getting my third party non-reference assemblies deployed via Webdeploy withing the Visual Studio 2012 UI. I have a folder called 'libraries', which contains some assemblies. Via the following in my *.csproj file I can set the Build Action to ' ThirdPartyAssemblies ': <ItemGroup> <AvailableItemName Include="ThirdPartyAssemblies"> <Visible>false</Visible> </AvailableItemName> </ItemGroup> <Target Name="AfterBuild"> <Message Text="Build | Third party assemblies" Importance