msbuild-task Questions
16
Solved
When using TeamCity to compile my MSBuild XML task script, it fails with this:
[10:43:03]: myWebProject1\ myWebProject 1 .csproj (3s)
[10:43:07]: [ myWebProject1\ myWebProject1 .csproj] _CopyWebAp...
Disquietude asked 1/3, 2011 at 17:49
2
Solved
I have a list of projects in my MSBuild file:
<ItemGroup>
<SubProject Include="**\*.csproj" />
</ItemGroup>
And now, I would like to set, on each project, its TargetPath in a ...
Cimon asked 4/7, 2012 at 11:24
2
Solved
We had a discussion before.
https://social.msdn.microsoft.com/Forums/vstudio/en-US/e04e7791-c0c4-4598-b900-310878f5af45/how-can-i-locate-and-change-the-vctargetspath-variable?forum=msbuild
After ho...
Tetrasyllable asked 22/8, 2020 at 19:2
2
We have downloaded a project from TFS and after restoring Nuget packages we are getting below error:
Error 5 The "ValidatePackageReferences" task could not be loaded from the assembly projectPath\...
Fiendish asked 30/10, 2017 at 23:25
2
Currently I'm getting CA0055 and CA0052 code analysis errors (both with Visual Studio 2017 and also by using MSBuild command) after configuring ASP.Net Core 2.0 application with custom code analysi...
Kafka asked 7/10, 2017 at 6:15
6
Solved
I am running the MSBuild task with ContinueOnError=true:
<MSBuild Projects="@(ComponentToDeploy)"
Targets="$(DeploymentTargets)"
Properties="$(CommonProperties);%(AdditionalProperties)"
Cont...
Videlicet asked 29/5, 2012 at 9:50
3
Solved
I have the following inline task defined in a .csproj file that should run BeforeBuild.
<UsingTask TaskName="VersioningTask" TaskFactory="CodeTaskFactory" AssemblyFile="...
Shirring asked 24/4, 2013 at 2:3
1
I have a project which has separate client and server folders and my goal is to include client files during the server's publish process. The folder structure looks like this
|- server
| |- src
| |...
Georas asked 24/8, 2020 at 13:16
1
Solved
In .NET, you can specify which .NET project SDK you would like to use by specifying the Sdk attribute on the top-level Project element:
<Project Sdk="Microsoft.NET.Web.Sdk">
I am w...
Fife asked 8/2, 2022 at 18:57
2
Solved
I am trying to build the Dll in C# in Visual Studio. Used the NuGet RGiesecke.DllExport. However for some reason it returns some error when building the Dll. Bellow is the description.
Error
T...
Boutique asked 9/9, 2019 at 8:52
4
Solved
I've got a little issue regarding Jenkins and NuGet package restore.
What I'm trying to do is build solutions on jenkins (which works perfectly fine). I have enabled package restore for the solut...
Sorites asked 5/8, 2014 at 13:30
1
UPDATE:
It seems that adding dotnet build -v d a.k.a setting the verbosity to detailed is revealing more details (obviously) about this process
ORIGINAL:
Referencing: https://learn.microsoft.com...
Monochasium asked 8/11, 2018 at 15:42
2
I'm trying to build a Xamarin iOS app in Visual Studio App Center. The solution contains two projects. One is a Xamarin iOS project. The other is a bindings library project. The bindings library pr...
Jackleg asked 3/2, 2018 at 12:29
5
How can I use the c++ XSD Task in a c# project? I have already created the task in the csproj file like this:
<Target Name="BeforeBuild">
<XSD Namespace="$(RootNamespace).Xml" Language=...
Kingsbury asked 5/3, 2010 at 11:53
2
Solved
I have a custom MSBuild target, partial snippet as follows ..
<Target Name="PublishHtm">
<PropertyGroup>
<PublishHtmTemplateContents>$([System.IO.File]::ReadAllText($(PublishHt...
Courtmartial asked 15/4, 2015 at 0:6
1
In VS2019, I have MVC dotnet framework project and while doing dotnet build got the issue
error MSB4801: The task factory "CodeTaskFactory" is not supported on the .NET Core version of MS...
Danger asked 3/5, 2020 at 4:51
2
Solved
Is there a MSBuild task for setting custom attribute in AssemblyInfo.cs?
I found AssemblyInfo task but it seems that it cannot set custom attributes, only predefined ones. I'd like to set 3 custom ...
Helsa asked 11/6, 2012 at 12:37
5
I am trying to automate the process for setting the Version for all DLL's, after spending some time I came to know the AssemblyInfo Task with which it can most likely be achieved.
So I went ahead ...
Andonis asked 30/12, 2010 at 13:11
7
Solved
I want to replace a string such "how r u" in file test.xml with a string "i am fine" in another file xy.xml.using regular expression in ms build.
ie i have to read string from one file(xy.xml) and...
Thallium asked 20/10, 2011 at 14:40
1
I am trying to download Build Tools for Visual Studio 2019 from https://visualstudio.microsoft.com/downloads/ But when I click on download button, system downloads an exe which tries to connect to ...
Stealage asked 22/1, 2020 at 21:49
2
I have a C# library project that hase some dependencies that a created in "BeforeBuild" with PowerShell.
MSBuild seems to execute target "BeforeBuild" each time, also if the library project itself...
Euripus asked 5/8, 2019 at 6:26
4
I'm trying to get simple output by exec task with msbuild:
<Project xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<Target Name="Test">
<Exec Command="echo test outp...
Paramount asked 20/1, 2012 at 8:37
1
Solved
Is there a way to use value ending with space as XmlPoke value? When I execute task, value is replaced but without space at the end.
Reproduction:
test.targets:
<?xml version="1.0" encoding="...
Yachtsman asked 4/12, 2018 at 13:21
1
I have installed MSBuild.ILMerge.Task into my project using Nuget.
When i try to build my project , An error comes up :
Error : Unresolved assembly reference not allowed: ICSharpCode.SharpZipLi...
Dizon asked 11/3, 2017 at 11:29
2
Solved
I have a .NET Framework 4.5.2 WebAPI2 project. While building the project in Visual Studio, I want a powershell script I wrote to run before each and every build. If the powershell script exits wit...
Papist asked 20/9, 2018 at 20:49
1 Next >
© 2022 - 2025 — McMap. All rights reserved.