msbuild

pdb file is mising after PostSharp

拥有回忆 提交于 2019-12-30 17:27:11
问题 I am using PostSharp version 2.1.6.4 (also tried latest version 2.1.7.35) and sometimes pdb file is missing and there is a pssym file in it's place. <?xml version="1.0" encoding="utf-8"?> <Symbols xmlns="http://schemas.postsharp.org/2.0/symbols"> <Class Class="#1=T:[CrosscuttingLogging]CrosscuttingLogging.Attributes.LogMethodCallStatsAttribute" LimitedLicense="true" /> <Class Class="#2=T:[RequestLimiter]RequestLimiter.RequestCounterAttribute" LimitedLicense="true" /> </Symbols> I ran procmon

MSBuild NuGet.targets ,Nuget.exe : Unable to read package from path 'blah.nupkg' error

萝らか妹 提交于 2019-12-30 17:22:15
问题 I am getting these errors when running a MSBuild build step that builds a web project in TeamCity and I have setup my Nuget targets file PackageSource to point to a local Nuget server e.g. PackageSource Include="http://mylocaldevurl/nuget/Packages" . The build runs and produces errors of the form e.g. Exec] F:\TeamCity\buildAgent\work\blahblah.nuget\NuGet.targets(87, 9): Unable to read package from path 'Lucene.Net.3.0.3.nupkg'. Whats is strange other packages are downloaded fine to the

如何在 MSBuild 中正确使用 % 来引用每一个项(Item)中的元数据

心不动则不痛 提交于 2019-12-30 09:33:34
MSBuild 中写在 <ItemGroup /> 中的每一项是一个 Item , Item 除了可以使用 Include / Update / Remove 来增删之外,还可以定义其他的元数据(Metadata)。 使用 % 可以引用 Item 的元数据,本文将介绍如何正确使用 % 来引用每一个项中的元数据。 本文内容 定义 Item 的元数据 引用元数据 使用元数据 关于项元数据的其他信息 定义 Item 的元数据 就像下面这样,当引用一个 NuGet 包时,可以额外使用 Version 来指定应该使用哪个特定版本的 NuGet 包。这里的 Version 和 PrivateAssets 就是 PackageReference 的元数据。 < ItemGroup > < PackageReference Include = " dotnetCampus.Configurations.Source " Version = " 1.0.0 " PrivateAssets = " All " /> < PackageReference Include = " dotnetCampus.CommandLine.Source " Version = " 1.2.1 " PrivateAssets = " All " /> < PackageReference Include = "

Installing Platform Toolset v120 under Visual Studio 2015

断了今生、忘了曾经 提交于 2019-12-30 09:31:48
问题 With Visual Studio 2015 trying to build a C/C++ project that needs Platform Toolsets v120 . The required platform toolsets are not getting populated: From this stackoverflow post it sounds as if it will not be possible to do so without installing Visual Studio 2013 on the same system. Is it really true ? If so then what is the use of the build tools hosted by Microsoft ? 回答1: The build tool page says that the build tool is only for VB/C#. "Build Tools 2013 provides the essential tools for

How to bootstrap .NET 3.5 SP1 with msbuild? following found instructions doesn't work

巧了我就是萌 提交于 2019-12-30 09:07:41
问题 I'm trying to use msbuild GenerateBootstrapper task to distribute a .net application with the framework, without the need of internet connection to install it. I've found many posts that all lead to the same instructions in here: Enable Samesite for the .NET Framework 3.5 SP1 bootstrapper After following the instructions, I still cannot generate the bootstrapper. The more obvious issue I can see is that extracting the files from dotNetFx35.exe does not extract the same list of files and

How does MSBuild find the Delphi search path?

瘦欲@ 提交于 2019-12-30 08:17:11
问题 If I launch the RAD Studio command prompt and run msbuild /t:Rebuild in a project directory, msbuild will show the full command line to invoke dcc32, including all path settings. Which kind of magic does MSBuild use to find the search paths, based on the IDE settings (stored in the registry) and the project file (which contains placeholders like $(DCC_UnitSearchPath)? The RAD Studio command prompt only sets the .Net environment for MSBuild. So there is something else working behind the scenes

Automate xsd.exe during build

谁说胖子不能爱 提交于 2019-12-30 06:46:08
问题 I need a way to automatically regenerate *.cs files during build, based on *.xsd files, preferably without involving any custom add-ins. This needs to run on the CI build as well. I'm not sure if I'm missing something obvious, or is this really tricky as it seems to me? 回答1: I use this script: @echo off cd %1 call :treeProcess %2 "XSDs" cd .. goto :eof :treeProcess rem From http://stackoverflow.com/a/8398621/298754 echo Processing %2 for %%f in (*.xsd) do call :buildXSD %%f %1 %2 %%~nf for /D

MsBuild does not look in the good directory for custom task's second-level dependencies

♀尐吖头ヾ 提交于 2019-12-30 06:42:06
问题 I wrote a MsBuild Task : MyTask. In my solution, I have the Task project and others projects. MyTask references a project (say ProjA) which references third assemblies, say (dep1 and dep2). The projects all builds well and I have the outputs in one directory (Compil). In this directory i have all the dll's I want : MyTask.dll, ProjA.dll, dep1.dll, dep2.dll and others. In my MsBuild file i include the custom task assembly with : <UsingTask AssemblyFile="..\Compil\MyTask.dll" TaskName=

MsBuild publish website without using publish profile

99封情书 提交于 2019-12-30 06:29:22
问题 A publish profile to publish a Visual Studio Website can be used from both the Visual Studio 2013 publish dialog, and from the command line MsBuild as explained in this question Using msbuild to execute a File System Publish Profile C:\Windows\Microsoft.NET\Framework\v4.0.30319\MSBuild.exe ./ProjectRoot/MyProject.csproj /p:DeployOnBuild=true /p:PublishProfile=FileSystemDebug However, I want to get rid of the publish profile completely and do everything from the command line - because I do not

MSDeploy all configuration [.config files] in one package

白昼怎懂夜的黑 提交于 2019-12-30 04:50:08
问题 We have 4 different environments at the moment (Lab, Test, Stage, LIVE) and we have implemented automatic deployment using Nant/CC.Net. I am investigating and doing some research as to what can be done more efficiently with new MSDeploy tool. What I want to achieve is to create a package with a Configuration folder inside which we will have all the different configuration files for all the possible environments (basically adding all config transform files) What I want to achieve is automatic