配置.NET Core以使用x86 SDK [英] Configure .NET Core to use x86 SDK

查看:306
本文介绍了配置.NET Core以使用x86 SDK的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试将.NET Core Web应用程序更改为使用x86版本的.NET Core SDK。

I'm trying to change my .NET Core Web Application to use the x86 version of the .NET Core SDK.

我从此处。我可以在 C:\Program Files(x86)\dotnet\sdk\1.0.0-preview2-003131

我将global.json更新为:

I updated my global.json to this:

{
    "projects": [ "src" ],
    "sdk": {
        "version": "1.0.0-preview2-003131",
        "architecture": "x86"
    }
}

但是我得到了错误:

该项目配置为使用.NET Core SDK版本1.0.0-preview2-003131,该版本尚未安装或在路径C:\Program Files\dotnet下找不到。这些组件是构建和运行此项目所必需的。下载global.json中指定的.NET Core SDK版本或将global.json中的SDK版本更新为已安装的版本。

我猜我需要告诉我的应用程序查看 C:\Program Files(x86)\dotnet

I guess I need to tell my application to look in C:\Program Files (x86)\dotnet

我该怎么做?

感谢您的帮助!

推荐答案

找到了解决方案。

当我安装x64版本时,它在我的PATH环境变量中创建了一个名为 C:\Program Files\dotnet 的条目。我卸载了x64版本并安装了x86版本。但是,卸载x64版本并没有从我的PATH中删除 C:\Program Files\dotnet 。因此,我手动将其删除,并确保存在x86版本添加的条目 C:\Program Files(x86)\dotnet

When I installed the x64 version, it created an entry in my PATH environment variable called C:\Program Files\dotnet. I uninstalled the x64 version and installed the x86 version. However, the un-installation of the x64 version did not remove the C:\Program Files\dotnet from my PATH. So, I removed it manually, and made sure that the entry that the x86 version added, C:\Program Files (x86)\dotnet, existed.

这篇关于配置.NET Core以使用x86 SDK的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆