Relative Content

Tag Archive for .netmsbuild

Is MSBuild With Absolute Solution File Path Updating Working Directory

Say I am currently under the directory C:Eccentric-Stuff folder, then if I echo %CD%, the output is that folder, that is right portion. However at underneath the folder when I am building the solution e.g. by issuing dotnet build C:userstemp1rocketshooting.sln command, I find if I print “CD” environment variable from a “Message” task within a .csproj file under the solution, the output is c:userstemp1.

Why an unnecessary project is built when building a project?

I am building a project for several versions of the framework. And I need to output a message after building the release of each version, for this I use AfterTargets. But AfterTarget is triggered 3 times instead of the required two. What could be the reason?