msbuild

Call Visual Studio 2017 Task Runner from MSBuild?

做~自己de王妃 提交于 2019-12-24 07:57:46
问题 I am using the Bundler & Minifier VS2017 extension for JavaScript and CSS minification and MSBuild for other components of my ASP.NET 4.0 Web Forms solution. Using Task Runner, I created an "After Build" binding so the minification happens after MSBuild. This extension updates the bundle in real time when source file changes are saved so I would like the extension to do its work only when a Release build is created. I suppose there is no way to configure the binding so it only activates for a

MSBuild Vs Visual Studio - Differences in compilation?

限于喜欢 提交于 2019-12-24 07:34:43
问题 I'm attempting to set up a Continuous Integration process for a legacy VB.Net ASP.Net Forms application, using Visual Studio 2015 and an on premises TFS 2013 server. However, I'm failing to get a Build Definition to successfully build my application. It's a XAML Build Definition, which triggers happily on every TFS check in, but has so far failed to build the application, due to errors compiling a component project with Property-related errors like 'Extended Properties cannot be initialized'

Visual Studio Build - Azure 2.9 SDK

瘦欲@ 提交于 2019-12-24 07:26:11
问题 I am trying to build my software on Visual Studio Team Services. I recently upgraded from VS 2013 to VS 2015. I upgraded from the Azure 2.6 to the Azure 2.9 SDK. When the software builds, I get this error: C:\a\src\CCC\Azure\CloudService1\CloudService1.ccproj (95, 0) The imported project "C:\Program Files (x86)\MSBuild\Microsoft\VisualStudio\v14.0\Windows Azure Tools\2.9\Microsoft.WindowsAzure.targets" was not found. Confirm that the path in the declaration is correct, and that the file

Why does msbuild fail while building within VS builds fine?

孤者浪人 提交于 2019-12-24 07:04:10
问题 We have a complex solution (22 sub-projects, one of which is a website) that won't build using TFS Build. If I open the solution on the build server the code compiles fine inside of Visual Studio, but if I open a CMD prompt and try MSBUILD piccsserver.sln I get this error: "C:\TFS2017_agent\_work\4\s\CorePlatform\PICCS\Main\src\piccsserver.sln" (default target) (1) -> "C:\TFS2017_agent\_work\4\s\CorePlatform\PICCS\Main\src\PICCS_WebHost.metaproj" (default target) (24) ->(Build target) ->

BundlerMinifier and WebCompiler does not output files on build

落花浮王杯 提交于 2019-12-24 06:35:29
问题 We've just removed Gulp from our build and using the Bundler & Minifier (https://github.com/madskristensen/BundlerMinifier) and Compiler (https://github.com/madskristensen/WebCompiler) and both the bundleconfig.json and compilerconfig.json have "Enable bundle on build" and "Enable compile on build" ticked, but when I build or rebuild the solution, none of the output files are generated. If I right-click the json's and either "Update bundles" or "Re-compile all files" manually, then the files

UpToDateCheckBuilt does not work and the build always works

亡梦爱人 提交于 2019-12-24 06:24:11
问题 Project file <PropertyGroup> <OutputType>Exe</OutputType> <TargetFramework>netcoreapp2.2</TargetFramework> </PropertyGroup> <PropertyGroup> <GenerateFile>DataFileList.txt</GenerateFile> </PropertyGroup> <ItemGroup> <DataFiles Include="**\*.dat" /> </ItemGroup> <ItemGroup> <UpToDateCheckInput Include="@(DataFiles)" /> <UpToDateCheckBuilt Include="$(OutputPath)$(GenerateFile)" /> </ItemGroup> <Target Name="TestBuild" AfterTargets="Build" Inputs="@(DataFiles)" Outputs="$(OutputPath)$

How to add C# code to a new Orchard CMS theme

天涯浪子 提交于 2019-12-24 05:52:19
问题 Introduce the Problem I would like to implement the Orchard IShapeTableProvider, in order to add an alternate for the main List shape. I have done the following: Download Orchard.Source.1.8.zip, build in VS 2013, and create a new theme via code generation: orchard.exe feature enable Orchard.CodeGeneration codegen theme My.FirstTheme theme enable My.FirstTheme Add the following code to my theme in the Themes > My.FirstTheme > Code > ListShapeProvider.cs file. namespace Themes.My.FirstTheme

How to add C# code to a new Orchard CMS theme

霸气de小男生 提交于 2019-12-24 05:52:01
问题 Introduce the Problem I would like to implement the Orchard IShapeTableProvider, in order to add an alternate for the main List shape. I have done the following: Download Orchard.Source.1.8.zip, build in VS 2013, and create a new theme via code generation: orchard.exe feature enable Orchard.CodeGeneration codegen theme My.FirstTheme theme enable My.FirstTheme Add the following code to my theme in the Themes > My.FirstTheme > Code > ListShapeProvider.cs file. namespace Themes.My.FirstTheme

Teamcity not using the right MSbuild version

泪湿孤枕 提交于 2019-12-24 03:37:18
问题 Just installed a new version of TC and it seems not to be using the right MSbuild version for deployment. C:\TeamCity\buildAgent\work\3378319287fedcd4\Source\UI\OneBody.Web\OneBody.Web.csproj(927, 3): error MSB4019: The imported project "C:\Program Files (x86)\MSBuild\Microsoft\VisualStudio\v11.0\WebApplications\Microsoft.WebApplication.targets" was not found. Confirm that the path in the declaration is correct, and that the file exists on disk. I have the \WebApplications folder on

VS2010 - Using <Import /> to share properties between setup projects?

纵然是瞬间 提交于 2019-12-24 03:29:55
问题 Why doesn't it work to <Import /> this file, when it works when I replace the statement with just copy-pasting the three properties? ../../Setup.Version.proj <Project xmlns="http://schemas.microsoft.com/developer/msbuild/2003"> <PropertyGroup> <InstallerMajorVersion>7</InstallerMajorVersion> <InstallerMinorVersion>7</InstallerMinorVersion> <InstallerBuildNumber>7</InstallerBuildNumber> </PropertyGroup> </Project> Works: <?xml version="1.0" encoding="utf-8"?> <Project ToolsVersion="4.0"