我正在尝试通过dotnet安装dotnet-ef工具。
我输入的命令:dotnet tool install --global dotnet-ef
我给出了以下错误:
The tool package could not be restored.
Tool 'dotnet-ef' failed to install. This failure may have been caused by:
* You are attempting to install a preview release and did not use the --version option to spe
我尝试运行一个Blazor应用程序。
Web.Server runs .NET Core 3.0
Web.Client runs .NET Standard 2.0
Web.Shared runs .NET Standard 2.0
在将应用程序发布并上传到IIS后,我收到以下错误:
HTTP Error 500.31 - ANCM Failed to Find Native Dependencies
Common solutions to this issue:
The specified version of Microsoft.NetCore.App or Microsoft.AspNe
我正在尝试将我的WPF(.net框架)项目迁移到WPF(.net核心3)。所以我已经安装了this Visual Studio Extension,并且我现在能够创建一个新的.net( nuget核心)项目,但是当我添加一个nuget包时,问题就开始了!,VS抛给我这个错误: Unable to find package Microsoft.NETCore.App with version (>= 3.0.0-preview6-27730-01)
- Found 69 version(s) in nuget.org [ Nearest version: 3.0.0-preview5-2
我删除了全局包缓存中的所有包,现在我的项目正在为标准库构造抛出大量的CS0012:
error CS0012: The type 'Object' is defined in an assembly that is not referenced. You must add a reference to assembly 'netstandard, Version=2.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51'.
error CS0012: The type 'IDisposable
dotnet -信息
.NET Core SDK (reflecting any global.json):
Version: 3.0.100
Commit: 04339c3a26
Runtime Environment:
OS Name: Mac OS X
OS Version: 10.15
OS Platform: Darwin
RID: osx.10.15-x64
Base Path: /usr/local/share/dotnet/sdk/3.0.100/
Host (useful for support):
Version:
我正在运行一个macOS,我正在做的项目刚刚从.NET核心2升级到.NET核心3,问题是我不能再用.NET构建我的项目了。如果我尝试使用dotnet在终端中构建它,构建就会成功。在我的项目中,有一些子项目使用netstandard2,但这不应该是一个问题(因为它在终端中工作)。我收到以下错误消息:
Project1 is not compatible with netcoreapp3.0 (.NETCoreApp,Version=v3.0). Project2 supports: netstandard2.1 (.NETStandard,Version=v2.1)
我尝试添加一个global.
我使用的是Visual 2019版本16.3.7。我想这是最新的更新。
当我试图编译一个基本的.NET Core2.2控制台应用程序时:
...I得到以下错误:
It was not possible to find any compatible framework version
The specified framework 'Microsoft.NETCore.App', version '2.2.0' was not found.
- The following frameworks were found:
1.0.1 at [
当我使用dotnet命令时,我遇到了一个问题
> dotnet Mydll.dll
It was not possible to find any compatible framework version
The framework 'Microsoft.NETCore.App', version '5' was not found.
- The following frameworks were found:
2.1.23 at [C:\Program Files\dotnet\shared\Microsoft.NETCore.App]
我最近在interserver.net上购买了一个5美元的虚拟主机套餐。今天我尝试使用ASP.NET界面在服务器上发布我的Plesk应用程序。然后,当我试图访问我的网站时,我得到了这个错误:
HTTP Error 500.31 - ANCM Failed to Find Native Dependencies
The specified version of Microsoft.NetCore.App or Microsoft.AspNetCore.App was not found
我已经运行了命令dotnet --info命令,它显示.NET Core SDK3.1已安装:
因此,我一直在Visual Studio Code中处理一个项目C#项目,并且需要使用调试功能。但是,当我运行调试器时,我得到以下消息:
--------------------------------------------------------------------------------
You may only use the Microsoft .NET Core Debugger (clrdbg) with Visual Studio
Code, Visual Studio or Visual Studio for Mac software to help you develo
我正在尝试将一些遗留代码移植到网络核心。我已经在Windows 10中成功地做到了这一点(它完全编译和运行)。我现在正试图让它在MacOS Mojave中运行,因为我有一个mac,并且不愿使用虚拟机。
代码编译正确,但是当它试图运行它时,系统会说它找不到合适版本的net。
我已经尝试重新安装Visual,之前已经安装了netcore。
我也尝试过做"hello world“的例子,它编译并运行得完美无缺。
它显示的错误是:
It was not possible to find any compatible framework version
The specified framewo
我已经创建了.NET核心的应用程序从模板-与角和认证。IISCore3.1inProperties->Debug->对于.NET配置文件,我已经将宿主模型设置为进程之外。但在Web.config中,我仍在处理中。我已经从这个站点安装了ASP:,当我以IIS的身份运行我的项目时,它可以工作。但是,当我将已发布的文件复制到IIS文件夹时,出现了错误:
HTTP Error 500.30 - ANCM In-Process Start Failure
Common solutions to this issue:
The application failed to start
The a
我有一个带有EF的dotnet项目。当我试图配置、构建和运行Nuget还原步骤时,会出现以下错误
The nuget command failed with exit code(1) and error(Errors in E:\TFS_Agents2017\...\s\ABC.Employees\ABC.Employees.csproj
Unable to resolve 'Microsoft.NETCore.App (>= 3.1.0)' for '.NETCoreApp,Version=v3.1'.
Errors in E:\TFS_Agen
我正在使用这个链接在本地设置一个.NET核心剃刀页面项目。
一切都是按照教程,我已经安装了以下.NET核心下载。
.NET Core SDK (reflecting any global.json):
Version: 3.1.400
Commit: 035fb2aa2f
Runtime Environment:
OS Name: Windows
OS Version: 10.0.18362
OS Platform: Windows
RID: win10-x64
Base Path: C:\Program Files\dotnet\sd
我正在尝试安装php。输入以下命令时
composer require firebase/php-jwt
它会给出以下错误。
Using version ^4.0 for firebase/php-jwt
./composer.json has been updated
Loading composer repositories with package information
Updating dependencies (including require-dev)
Your requirements could not be resolved to an installable s
我有一个azure函数,它的ServiceBus触发器在本地运行,在azure上运行得很好。突然,Azure部署开始失败,有以下堆栈跟踪:
System.MissingMethodException : Method not found: 'Microsoft.Azure.WebJobs.IWebJobsExtensionBuilder Microsoft.Azure.WebJobs.WebJobsExtensionBuilderExtensions.ConfigureOptions(Microsoft.Azure.WebJobs.IWebJobsExtensionBuilder, S
.NET核心全局工具安装在某些Windows计算机上失败,出现以下错误:
Failed to install tool package 'amazon.lambda.tools': Could not find a part of the path 'C:\Users\myUser\.dotnet\tools\.store\.stage\xxx.yyy\amazon.lambda.tools'.
Tool 'amazon.lambda.tools' failed to install. This failure may have been cau
我有一个ASP.Net Core 2.2应用程序。在Visual中运行应用程序很好。但是,当我尝试使用dotnet发布发布应用程序时,会出现以下错误:
It was not possible to find any compatible framework version
The specified framework 'Microsoft.NETCore.App', version '1.0.0' was not found.
- Check application dependencies and target a framework versi