Skip to main content

All Questions

Tagged with
1 vote
1 answer
95 views

How can I call code that uses `Start-ThreadJob` from the PowerShell SDK?

I have an app that is using the PowerShell SDK to execute PowerShell code in the background. However, that code depends on Start-Job, and the PowerShell script is throwing an exception when I run it ...
citelao's user avatar
  • 5,616
0 votes
0 answers
72 views

Powershell script in Visual Studio: how to do post built events

Working with Visual Studio Community 2022, I have a PowerShell script in my Solution (I installed PowerShellTools.2022.2023.8.0.vsix) and i'd like to do some post-build events (copying the script to ...
8oris's user avatar
  • 383
0 votes
1 answer
93 views

Running msbuild target during docker build causes error

I use an msbuild target to replace certain values in my .appsettings file. This is the command: <Exec Command="pwsh -Command &quot;$appSettingsPath = '$(AppSettingsFilePath)'; $json = Get-...
Vanice's user avatar
  • 676
0 votes
0 answers
57 views

Why my powershell script does not detect dll from dll.refresh file?

I am working on a legacy .Net website project and this project does not contain a References node and .csproj file. This project has a bin folder that contains foo.dll.refresh with the path to foo.dll ...
NShiva's user avatar
  • 60
0 votes
1 answer
315 views

How do I use MSBuild to build solutions programatically?

I have some VS solutions that I would like to build from within another VS project. I have looked at the MS documentation (https://learn.microsoft.com/en-us/visualstudio/msbuild/msbuild-api?view=vs-...
Wayne George's user avatar
0 votes
0 answers
49 views

Upgrading Build for 6.0 projects, Cant set MSBuild to look for Reference assemblies in right place

so i have a build server on which i execute an Azure Pipline. I have 100's of C# projects to compile, and it happens in a powershell task, where i go through all of the csproj paths, and execute ...
user2556026's user avatar
1 vote
1 answer
465 views

Use PowerShell developer command prompt to build solution

How do use the developer powershell command prompt Launch-VsDevShell.ps1 in powershell script to compile solution ? I want to compile inside the environment of the developer console when runing this ...
galsi's user avatar
  • 553
0 votes
0 answers
225 views

"error: MSB4040 There is no target in the project" when using MSbuild+Delphi10.2

I'm automating the build of a Delphi 10.2 project I'm using msbuild with .net 4.0.30319 I'm running rsvars.bat to set the environment variables and then call MSBuild start-process "C:\Program ...
Cristyan Schabarum's user avatar
0 votes
0 answers
580 views

How can we enable window workflow foundation inside Dockerfile for window base images for building Dot Net Framework application?

I am Facing the below error while building window-base Docker image for Dot Net Framework Application. C:\Windows\Microsoft.NET\Framework\v4.0.30319\Microsoft.Xaml.targets(193,5):error MSB4062: The &...
Hassan Shamshir's user avatar
0 votes
1 answer
167 views

Finding MSBuild using vswhere in invoke-build on an ADO pipeline

On my local machine I can use MSBuild pretty easily. But when I try to use the same PowerShell script as I do on my local machine on an ADO Pipeline, I get complaints that MSBuild is a not a cmdlet. ...
Joshua.Stone's user avatar
1 vote
1 answer
264 views

How to apply EWDK's SetupBuildEnv.cmd to running powershell session

I am using EWDK and msbuild to build some drivers. I have a build.cmd file that works. call <EWDK root>/BuildEnv\SetupBuildEnv.cmd cd <working directory> msbuild /t:build /p:... Calling ...
Jack G's user avatar
  • 96
1 vote
1 answer
447 views

Execute powershell in x64 from MSBuild

I would like to run an after build script with Powershell. This script needs to be run in 64bits. However, whenever I run msbuild with my .csproj file the script always runs in 32 bits. If I run the ...
unitrium's user avatar
0 votes
2 answers
861 views

MSBuild not publishing Web.config to the root of the publish folder

I'm running the following MSBuild command from PowerShell to publish a solution file: $Configuration = "Release" $slnFullPath = "...\Solution.sln"; $PublishPath = "$RepoRoot\...
simoneL's user avatar
  • 612
0 votes
0 answers
273 views

How to use ${tool 'MSBUILD'} in Powershell script from Jenkins?

I have a below batch command which is successfully executing in Jenkins pipeline script. bat "\"${tool 'MSBuild 16'}\\msbuild\" /p:Configuration=\"${params.Configuration}\" /p:...
Umang Gupta's user avatar
0 votes
0 answers
415 views

Error MSB3174: Invalid value for 'AssemblyVersion' for auto-incrementing version using %2a

I have one .csproj file. And as per the requirement. I have written PowerShell script to auto increment the Application Version. I have used reference from the following link and used some of it's ...
Kaivalya Dambalkar's user avatar

15 30 50 per page
1
2 3 4 5
19