question

RanjanSahoo-7495 avatar image
0 Votes"
RanjanSahoo-7495 asked PengGe-MSFT commented

MS Build Issue

Hi,

I am Getting below issue when am trying to build the project in Bamboo. My solution is on .Net FrameWork 4.6.2 and I tried to add on class library project to it and it has some .netstandards 2.0 dll reference to it . Need some help on this. Thanks

error MSB4066: The attribute "MetadataName" in element <CompilerVisibleItemMetadata> is unrecognized.

vs-msbuild
· 1
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

Hi, @RanjanSahoo-7495
May I know if you have got any chance to check my reply? Please feel free to share more detailed information to us and it will be very helpful for us to better work out this issue.

0 Votes 0 ·

1 Answer

PengGe-MSFT avatar image
0 Votes"
PengGe-MSFT answered PengGe-MSFT commented

Hi, @RanjanSahoo-7495
Can you provide more information? What is your version of Visual Studio and MSBuild? Can you share the proj file of your project? Upload it to https://onedrive.live.com/ and share the link here.(Please select Visible to the original poster & Microsoft option if you collect the log file and want to post the link as/in a comment)

· 2
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

122751-csprojfile.txt




and msbuid 14 we are using and VS 2019

Below is the error we are facing while deploying to Bamboo server


C:\Bamboo\build-dir\VN-AC-JOB1\packages\Titan.Common.Logging.Generator.2.0.3\build\Titan.Common.Logging.Generator.props(18,60): error MSB4066: The attribute "MetadataName" in element <CompilerVisibleItemMetadata> is unrecognized. [C:\Bamboo\build-dir\VN-AC-JOB1\Logger\TitanLogger\Resideo.Security.ValueNet.Common.Logger\Resideo.Security.ValueNet.Common.Logger.csproj]



PFA for link for csproj
https://1drv.ms/u/s!AuXeq924Q_iXg0mhcE-2TcBS4Ymw?e=kIoU6T






0 Votes 0 ·
csprojfile.txt (18.6 KiB)

Hi, @RanjanSahoo-7495
I cannot find "MetadataName" or "CompilerVisibleItemMetadata" in the proj file you uploaded, and I cannot reproduce your problem. I noticed that your project is deployed on Bamboo server, you can try to deploy the project locally to detect whether the issue will occur.

0 Votes 0 ·