我对 Visual Studio 比较陌生,我正在尝试从这个存储库编译 Fluent.Ribbon.Showcase:https ://github.com/fluentribbon/Fluent.Ribbon
我已经安装了 .NET core SDK v3.1.300,但是当我尝试编译时仍然遇到很多错误。
构建日志:
NuGet package restore failed. Please see Error List window for detailed warnings and errors.
1>------ Build started: Project: Fluent.Ribbon, Configuration: Debug Any CPU ------
1>'""' is not recognized as an internal or external command,
1>operable program or batch file.
1>C:\Users\Joseph\Downloads\Fluent.Ribbon-develop\Fluent.Ribbon-develop\Fluent.Ribbon\Fluent.Ribbon.csproj(64,5): error MSB3073: The command """" exited with code 9009.
1>Done building project "Fluent.Ribbon.csproj" -- FAILED.
2>------ Build started: Project: Fluent.Ribbon.Showcase, Configuration: Debug Any CPU ------
2>C:\Users\Joseph\Downloads\Fluent.Ribbon-develop\Fluent.Ribbon-develop\Fluent.Ribbon.Showcase\Fluent.Ribbon.Showcase.csproj : error NU1604: Project dependency JetBrains.Annotations does not contain an inclusive lower bound. Include a lower bound in the dependency version to ensure consistent restore results.
2>C:\Users\Joseph\Downloads\Fluent.Ribbon-develop\Fluent.Ribbon-develop\Fluent.Ribbon.Showcase\Fluent.Ribbon.Showcase.csproj : error NU1604: Project dependency MahApps.Metro does not contain an inclusive lower bound. Include a lower bound in the dependency version to ensure consistent restore results.
2>C:\Users\Joseph\Downloads\Fluent.Ribbon-develop\Fluent.Ribbon-develop\Fluent.Ribbon.Showcase\Fluent.Ribbon.Showcase.csproj : error NU1604: Project dependency MahApps.Metro.IconPacks.Material does not contain an inclusive lower bound. Include a lower bound in the dependency version to ensure consistent restore results.
2>C:\Users\Joseph\Downloads\Fluent.Ribbon-develop\Fluent.Ribbon-develop\Fluent.Ribbon.Showcase\Fluent.Ribbon.Showcase.csproj : error NU1604: Project dependency Microsoft.CodeAnalysis.CSharp does not contain an inclusive lower bound. Include a lower bound in the dependency version to ensure consistent restore results.
2>C:\Users\Joseph\Downloads\Fluent.Ribbon-develop\Fluent.Ribbon-develop\Fluent.Ribbon.Showcase\Fluent.Ribbon.Showcase.csproj : error NU1604: Project dependency StyleCop.Analyzers does not contain an inclusive lower bound. Include a lower bound in the dependency version to ensure consistent restore results.
2>C:\Users\Joseph\Downloads\Fluent.Ribbon-develop\Fluent.Ribbon-develop\Fluent.Ribbon.Showcase\Fluent.Ribbon.Showcase.csproj : error NU1604: Project dependency WpfAnalyzers does not contain an inclusive lower bound. Include a lower bound in the dependency version to ensure consistent restore results.
2>C:\Users\Joseph\Downloads\Fluent.Ribbon-develop\Fluent.Ribbon-develop\Fluent.Ribbon.Showcase\Fluent.Ribbon.Showcase.csproj : error NU1602: Fluent.Ribbon does not provide an inclusive lower bound for dependency ControlzEx. An approximate best match of ControlzEx 2.0.0.54 was resolved.
2>C:\Users\Joseph\Downloads\Fluent.Ribbon-develop\Fluent.Ribbon-develop\Fluent.Ribbon.Showcase\Fluent.Ribbon.Showcase.csproj : error NU1604: Project dependency JetBrains.Annotations does not contain an inclusive lower bound. Include a lower bound in the dependency version to ensure consistent restore results.
2>C:\Users\Joseph\Downloads\Fluent.Ribbon-develop\Fluent.Ribbon-develop\Fluent.Ribbon.Showcase\Fluent.Ribbon.Showcase.csproj : error NU1604: Project dependency MahApps.Metro does not contain an inclusive lower bound. Include a lower bound in the dependency version to ensure consistent restore results.
2>C:\Users\Joseph\Downloads\Fluent.Ribbon-develop\Fluent.Ribbon-develop\Fluent.Ribbon.Showcase\Fluent.Ribbon.Showcase.csproj : error NU1604: Project dependency MahApps.Metro.IconPacks.Material does not contain an inclusive lower bound. Include a lower bound in the dependency version to ensure consistent restore results.
2>C:\Users\Joseph\Downloads\Fluent.Ribbon-develop\Fluent.Ribbon-develop\Fluent.Ribbon.Showcase\Fluent.Ribbon.Showcase.csproj : error NU1604: Project dependency Microsoft.CodeAnalysis.CSharp does not contain an inclusive lower bound. Include a lower bound in the dependency version to ensure consistent restore results.
2>C:\Users\Joseph\Downloads\Fluent.Ribbon-develop\Fluent.Ribbon-develop\Fluent.Ribbon.Showcase\Fluent.Ribbon.Showcase.csproj : error NU1604: Project dependency StyleCop.Analyzers does not contain an inclusive lower bound. Include a lower bound in the dependency version to ensure consistent restore results.
2>C:\Users\Joseph\Downloads\Fluent.Ribbon-develop\Fluent.Ribbon-develop\Fluent.Ribbon.Showcase\Fluent.Ribbon.Showcase.csproj : error NU1604: Project dependency WpfAnalyzers does not contain an inclusive lower bound. Include a lower bound in the dependency version to ensure consistent restore results.
2>C:\Users\Joseph\Downloads\Fluent.Ribbon-develop\Fluent.Ribbon-develop\Fluent.Ribbon.Showcase\Fluent.Ribbon.Showcase.csproj : error NU1602: Fluent.Ribbon does not provide an inclusive lower bound for dependency ControlzEx. An approximate best match of ControlzEx 2.0.0.54 was resolved.
2>Done building project "Fluent.Ribbon.Showcase.csproj" -- FAILED.
2>C:\Users\Joseph\Downloads\Fluent.Ribbon-develop\Fluent.Ribbon-develop\Fluent.Ribbon.Showcase\Fluent.Ribbon.Showcase.csproj : error NU1604: Project dependency JetBrains.Annotations does not contain an inclusive lower bound. Include a lower bound in the dependency version to ensure consistent restore results.
2>C:\Users\Joseph\Downloads\Fluent.Ribbon-develop\Fluent.Ribbon-develop\Fluent.Ribbon.Showcase\Fluent.Ribbon.Showcase.csproj : error NU1604: Project dependency MahApps.Metro does not contain an inclusive lower bound. Include a lower bound in the dependency version to ensure consistent restore results.
2>C:\Users\Joseph\Downloads\Fluent.Ribbon-develop\Fluent.Ribbon-develop\Fluent.Ribbon.Showcase\Fluent.Ribbon.Showcase.csproj : error NU1604: Project dependency MahApps.Metro.IconPacks.Material does not contain an inclusive lower bound. Include a lower bound in the dependency version to ensure consistent restore results.
2>C:\Users\Joseph\Downloads\Fluent.Ribbon-develop\Fluent.Ribbon-develop\Fluent.Ribbon.Showcase\Fluent.Ribbon.Showcase.csproj : error NU1604: Project dependency Microsoft.CodeAnalysis.CSharp does not contain an inclusive lower bound. Include a lower bound in the dependency version to ensure consistent restore results.
2>C:\Users\Joseph\Downloads\Fluent.Ribbon-develop\Fluent.Ribbon-develop\Fluent.Ribbon.Showcase\Fluent.Ribbon.Showcase.csproj : error NU1604: Project dependency StyleCop.Analyzers does not contain an inclusive lower bound. Include a lower bound in the dependency version to ensure consistent restore results.
2>C:\Users\Joseph\Downloads\Fluent.Ribbon-develop\Fluent.Ribbon-develop\Fluent.Ribbon.Showcase\Fluent.Ribbon.Showcase.csproj : error NU1604: Project dependency WpfAnalyzers does not contain an inclusive lower bound. Include a lower bound in the dependency version to ensure consistent restore results.
2>C:\Users\Joseph\Downloads\Fluent.Ribbon-develop\Fluent.Ribbon-develop\Fluent.Ribbon.Showcase\Fluent.Ribbon.Showcase.csproj : error NU1602: Fluent.Ribbon does not provide an inclusive lower bound for dependency ControlzEx. An approximate best match of ControlzEx 2.0.0.54 was resolved.
2>Done building project "Fluent.Ribbon.Showcase.csproj" -- FAILED.
========== Build: 0 succeeded, 2 failed, 0 up-to-date, 0 skipped ==========
这是 Fluent.Ribbon.Showcase 的 .csproject 内容。它与我从 GitHub 下载的内容没有变化:
<?xml version="1.0" encoding="utf-8"?>
<Project Sdk="Microsoft.NET.Sdk.WindowsDesktop">
<PropertyGroup>
<RootNamespace>FluentTest</RootNamespace>
<AssemblyName>Fluent.Ribbon.Showcase</AssemblyName>
<NoWarn>$(NoWarn);SA0001</NoWarn>
<InlcudeMahAppsMetro>true</InlcudeMahAppsMetro>
<InlcudeMahAppsMetro Condition="$(TargetFramework) == 'net452'">false</InlcudeMahAppsMetro>
<DefineConstants Condition="$(InlcudeMahAppsMetro)">$(DefineConstants);MahApps_Metro</DefineConstants>
</PropertyGroup>
<PropertyGroup>
<OutputType>WinExe</OutputType>
<StartupObject>FluentTest.Program</StartupObject>
<ApplicationIcon>Icons\App.ico</ApplicationIcon>
<ApplicationManifest>app.manifest</ApplicationManifest>
</PropertyGroup>
<ItemGroup>
<None Include="app.manifest" />
</ItemGroup>
<ItemGroup Condition="$(InlcudeMahAppsMetro) == false">
<Page Remove="MahMetro*" />
<Compile Remove="MahMetro*" />
<None Include="MahMetro*" />
</ItemGroup>
<ItemGroup>
<ProjectReference Include="..\Fluent.Ribbon\Fluent.Ribbon.csproj" />
<PackageReference Include="MahApps.Metro.IconPacks.Material" />
<PackageReference Include="MahApps.Metro" Condition="$(InlcudeMahAppsMetro)" />
</ItemGroup>
<ItemGroup Condition="$(DefineConstants.Contains(NETCOREAPP)) == false">
<Reference Include="System.Web" />
<Reference Include="System.Windows.Forms" />
<Reference Include="System.Data" />
<Reference Include="WindowsFormsIntegration" />
</ItemGroup>
</Project>