Unable to use "dotnet run" in 32bit Application in ubantu machine
Aditya Dalai
25
Reputation points
Currently I am trying to run my dotnet core in 32bit Console App in Linux (Ubantu) below is the code base of my Console App
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<OutputType>Exe</OutputType>
<TargetFramework>net6.0</TargetFramework>
<ImplicitUsings>enable</ImplicitUsings>
<Nullable>enable</Nullable>
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
<DebugSymbols>true</DebugSymbols>
<OutDir>_Out\Debug\</OutDir>
<DefineConstants>TRACE;DEBUG;TEST</DefineConstants>
<CodeAnalysisModuleSuppressionsFile>GlobalSuppressions.cs</CodeAnalysisModuleSuppressionsFile>
<ErrorReport>prompt</ErrorReport>
<PlatformTarget>x86</PlatformTarget>
<Prefer32Bit>false</Prefer32Bit>
</PropertyGroup>
</Project>
I am able to build it by using dotnet build
command.
but while using dotnet run
in debug mode I am unable to run it I am getting below exception .
Could you please suggest me how Can I fix this issue .
Sign in to answer