OutputPath is set to bin \ x86 \ release, but when using MSBuild, it appears as obj \ x86 \ release

In my .csproj file (C # project file) is installed as follows: OutputPath

<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|x86' ">
  <DefineTrace>true</DefineTrace>
  <OutputPath>bin\x86\Release\</OutputPath>
  ....
</PropertyGroup>

In my NAnt script, I have this:

<msbuild project="${demo.solution}">
  <property name="Configuration" value="release"/>

  <property name="OutputPath" value="${output.dir}"/>
  <property name="Platform" value="x86"/>
</msbuild>

Why does the log show that DemoProject.dll is copied from obj \ x86 \ release?

....

[msbuild] The project "Demo.sln" (1) builds "DemoProjec1.vbproj" (3) on node 0 (default targets).

[msbuild] Copying the file from "obj \ x86 \ Release \ DemoProjec1.dll" to $ {output.dir} \ DemoProjec1.dll ".

[msbuild] DemoProjec1 β†’ $ {output.dir} \ DemoProjec1.dll

[msbuild] Ready construction project "DemoProjec1.vbproj" (default targets).

....

For some reason, DemoProject.dll of objdiffers in size from DemoProject.dll of bin.

+3
1

obj\x86\release - IntermediateOutputPath .

, . NAnt OutputPath ${output.dir}, obj\x86\release ${output.dir}.

+2

Source: https://habr.com/ru/post/1761871/


All Articles