-
Notifications
You must be signed in to change notification settings - Fork 49
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
The value 'arm64' is invalid according to its datatype #142
Comments
This is probably not a good repo for this kind of issue. I can build this without any problems: <Installation>
<InstallationTarget Id="Microsoft.VisualStudio.Community" Version="[16.0,17.0)" />
<InstallationTarget Id="Microsoft.VisualStudio.Community" Version="[17.0,18.0)">
<ProductArchitecture>amd64</ProductArchitecture>
</InstallationTarget>
<InstallationTarget Id="Microsoft.VisualStudio.Community" Version="[17.0,18.0)">
<ProductArchitecture>arm64</ProductArchitecture>
</InstallationTarget>
</Installation> (You dont need Pro and Enterprise) Maybe your build is configured to treat schema validation issues as error? |
Thanks @ErikEJ, we have no Could it be that somewhere locally I have an outdated version of Btw, I have the same error as squiggle when editing the |
Also on the same machine same VS 2022 Community17.3.6 (latest) I can compile the MIDL repo but still get the same warning in the |
Please share your entire vsixmanfest file as text. |
Here it is with
|
Unable to get build errors with this (slightly modfied) vsixmanifest: <?xml version="1.0" encoding="utf-8"?>
<PackageManifest Version="2.0.0" xmlns="http://schemas.microsoft.com/developer/vsx-schema/2011" xmlns:d="http://schemas.microsoft.com/developer/vsx-schema-design/2011">
<Metadata>
<Identity Id="ae98c9e5-8e14-4c92-b45a-c4fd24a49123" Version="2022.2.1.9664" Language="en-US" Publisher="ZEN PROGRAM HLD" />
<DisplayName>NDepend 2022.2.1</DisplayName>
<Description xml:space="preserve">NDepend 2022.2.1 extension for Microsoft Visual Studio. For more information about NDepend, visit https://www.ndepend.com. Copyright © 2004–2022 ZEN PROGRAM HLD</Description>
<MoreInfo>https://www.ndepend.com/features</MoreInfo>
<!--<License>PackageLicense.rtf</License>-->
<GettingStartedGuide>https://www.ndepend.com/docs/getting-started-with-ndepend</GettingStartedGuide>
<ReleaseNotes>https://www.ndepend.com/whatsnew</ReleaseNotes>
<Icon>Resources\icon.png</Icon>
<PreviewImage>Resources\preview.png</PreviewImage>
<Tags>static analysis, rule, issue, technical debt, code quality, code smell, diff, baseline, trend, dashboard, dependency, architecture, graph</Tags>
</Metadata>
<Installation>
<InstallationTarget Id="Microsoft.VisualStudio.Community" Version="[17.0,18.0)">
<ProductArchitecture>amd64</ProductArchitecture>
</InstallationTarget>
<InstallationTarget Id="Microsoft.VisualStudio.Community" Version="[17.0,18.0)">
<ProductArchitecture>arm64</ProductArchitecture>
</InstallationTarget>
<InstallationTarget Id="Microsoft.VisualStudio.Pro" Version="[17.0,18.0)">
<ProductArchitecture>amd64</ProductArchitecture>
</InstallationTarget>
<InstallationTarget Id="Microsoft.VisualStudio.Pro" Version="[17.0,18.0)">
<ProductArchitecture>arm64</ProductArchitecture>
</InstallationTarget>
<InstallationTarget Id="Microsoft.VisualStudio.Enterprise" Version="[17.0,18.0)">
<ProductArchitecture>amd64</ProductArchitecture>
</InstallationTarget>
<InstallationTarget Id="Microsoft.VisualStudio.Enterprise" Version="[17.0,18.0)">
<ProductArchitecture>arm64</ProductArchitecture>
</InstallationTarget>
</Installation>
<Dependencies>
<Dependency Id="Microsoft.Framework.NDP" DisplayName="Microsoft .NET Framework" Version="[4.0,)" />
</Dependencies>
<Assets>
<Asset Type="Microsoft.VisualStudio.VsPackage" d:Source="Project" d:ProjectName="%CurrentProject%" Path="|%CurrentProject%;PkgdefProjectOutputGroup|" />
</Assets>
<Prerequisites>
<Prerequisite Id="Microsoft.VisualStudio.Component.CoreEditor" Version="[17.0,18.0)" DisplayName="Visual Studio core editor" />
</Prerequisites>
</PackageManifest>
|
Assume it is your dependencies and/or ,csproj settings |
Thanks @ErikEJ. So finally our extension compile in VS 2022 17.3.6 with
I still think that the warning mentioned above (about Unfortunatly we're not yet there because our build process now fails with a strange exception.
In command line build we now get Could it be that somehow compiling within VS 2022 17.3.6 uses something from the VS 17.4.0 Preview 5 install (also installed on the machine), but command line compilation cannot use it hence the odd The whole stacktrace that appears in command line:
|
I think But it is really hard to help you when you are only sharing fragments of your .csproj. |
@ndepend - Hmmm. Try setting the TFM to 4.7.2 and see if that works. I just tried from a brand new project in Visual Studio 2022 17.3.6, updating the NuGet packages, and building. It works both within VS and from Developer Command Prompt and simply running CSProj:
Extension Manifest:
|
Thanks @snickler, actually on the same machine I can compile MIDL arm64, so again something in our csproj provokes the issue
See our csproj content below:
|
This looks old:
|
@ErikEJ this must not be that since Also I scanned with our tool NDepend assemblies in the directories Also if
but not with (still get the
(I remind the compilation within VS2022 17.3.6 works with |
Hmm @ndepend try adding Also |
Thank you for your feedback. In order for us to investigate this further, could you provide us with the following information?
Also, |
@ankitvarmait build with VS 17.4.0 Preview 5 made it, finally |
@ankitvarmait I am guessing next week, when .NET 7 is released |
@ndepend Next week at .NET Conf. Since .NET 7 GA is officially supported on 17.4 |
Thank you for your feedback. We'll close this issue since it works with the the latest preview version. If you have any new questions, please see our guidelines and report a new problem reproducible steps. Thanks |
Closing since it works with the newest version. |
I attempt to compile our AnyCPU extension against in the
arm64
but get this error:I read the Target Visual Studio 2022 (ARM64) documentation and don't figure what is wrong. The same error popups on both VS 2022 17.3.6 (latest) and 17.4.0 (preview 5) latest. Windows version is 10 19044.2130 and the machine is not ARM (Processor Intel(R) Xeon(R) E-2176M).
http://schemas.microsoft.com/developer/vsx-schema/2011
in thevsixmanifest
is also used in this screenshot in the documentation mentioned above.Those pkg are updated to latest versions in the
.csproj
:If I remove
pro
andenterprise
tags in thevsixmanifest
this doesn't help.The text was updated successfully, but these errors were encountered: