[wix-users] MSBuild daily build error
Dima Vasilkov
dimvasilk at gmail.com
Thu Jan 6 14:56:39 PST 2022
Hello,
I have an existing WiX project that I am setting up for daily builds
following the instructions at
https://wixtoolset.org/documentation/manual/v3/msbuild/daily_builds.html.
However I am getting an issue compiling a custom action. For some reason
msbuild is using candle to try to compile the .cs file
Here is the relevant section from .csproj
<ItemGroup>
<Compile Include="CustomAction.cs"/>
<Compile Include="Properties\AssemblyInfo.cs"/>
<Content Include="CustomAction.config"/>
</ItemGroup>
Here is msbuild output
PS C:\Users\Dims\pix\builds\CA2bt9yg\0\pix\pix\WiX> & "C:\Program
Files (x86)\Microsoft Visual
Studio\2019\BuildTools\MSBuild\Current\Bin\MSBuild.exe" `>>
"/p:DefineConstants=`"Branding=foobar;MajorMinorPatch=1.19.43;RelID=asdf`""
`>> /property:Configuration=Release /p:SignOutput=true -m
Microsoft (R) Build Engine version 16.8.3+39993bd9d for .NET Framework
Copyright (C) Microsoft Corporation. All rights reserved.
Build started 1/6/2022 5:45:37 PM.
1>Project "C:\Users\Dims\pix\builds\CA2bt9yg\0\pix\pix\WiX\pixBA.sln"
on node 1 (default targets).
1>ValidateSolutionConfiguration:
Building solution configuration "Release|Mixed Platforms".
1>Project "C:\Users\Dims\pix\builds\CA2bt9yg\0\pix\pix\WiX\pixBA.sln"
(1) is building
"C:\Users\Dims\pix\builds\CA2bt9yg\0\pix\pix\WiX\pixStack\pixStack.wixproj"
(2) on n
ode 3 (default targets).
2>Compile:
Skipping target "Compile" because all output files are
up-to-date with respect to the input files.
Link:
Skipping target "Link" because all output files are up-to-date
with respect to the input files.
GetCabsToSign:
Skipping target "GetCabsToSign" because all output files are
up-to-date with respect to the input files.
GetMsiToSign:
Skipping target "GetMsiToSign" because all output files are
up-to-date with respect to the input files.
Signing:
Skipping target "Signing" because all output files are
up-to-date with respect to the input files.
2>Done Building Project
"C:\Users\Dims\pix\builds\CA2bt9yg\0\pix\pix\WiX\pixStack\pixStack.wixproj"
(default targets).
1>Project "C:\Users\Dims\pix\builds\CA2bt9yg\0\pix\pix\WiX\pixBA.sln"
(1) is building
"C:\Users\Dims\pix\builds\CA2bt9yg\0\pix\pix\WiX\checkWslVmp\checkWslVmp.csproj"
(4)
on node 4 (default targets).
4>Compile:
..\binaries\candle.exe -dCPC -d"Branding=foobar"
-dMajorMinorPatch=1.19.43 -dRelID=dfe7ebb7-9eb3-40de-b3e4-054a7814b1e1
-d"DevEnvDir=*Undefined*" -dSolutionDir=C:\Use
rs\Dims\pix\builds\CA2bt9yg\0\pix\pix\WiX\ -dSolutionExt=.sln
-dSolutionFileName=pixBA.sln -dSolutionName=pixBA
-dSolutionPath=C:\Users\Dims\pix\builds\CA2bt9yg\0\pix
\pix\WiX\pixBA.sln -dConfiguration=Release
-dOutDir=bin\Release\ -dPlatform=x86
-dProjectDir=C:\Users\Dims\pix\builds\CA2bt9yg\0\pix\pix\WiX\checkWslVmp\
-dProjectExt=.cspro
j -dProjectFileName=checkWslVmp.csproj
-dProjectName=checkWslVmp
-dProjectPath=C:\Users\Dims\pix\builds\CA2bt9yg\0\pix\pix\WiX\checkWslVmp\checkWslVmp.csproj
-dTargetDir=C:\
Users\Dims\pix\builds\CA2bt9yg\0\pix\pix\WiX\checkWslVmp\bin\Release\
-dTargetExt=.wixlib -dTargetFileName=checkWslVmp.dll
-dTargetName=checkWslVmp -dTargetPath=C:\Users\Dim
s\pix\builds\CA2bt9yg\0\pix\pix\WiX\checkWslVmp\bin\Release\checkWslVmp.dll
-out obj\x86\Release\ -arch x86 CustomAction.cs
Windows Installer XML Toolset Compiler version 3.11.2.4516
Copyright (c) .NET Foundation and contributors. All rights reserved.
CustomAction.cs
4>C:\Users\Dims\pix\builds\CA2bt9yg\0\pix\pix\WiX\checkWslVmp\CustomAction.cs(1):
error CNDL0104: Not a valid source file; detail: Data at the root
level is invalid. Line 1, pos
ition 1.
[C:\Users\Dims\pix\builds\CA2bt9yg\0\pix\pix\WiX\checkWslVmp\checkWslVmp.csproj]
Which file can I check to fix this issue?
Best,
Dima
More information about the wix-users
mailing list