Unable to use "dotnet run" in 32bit Application in ubantu machine

Aditya Dalai 25 Reputation points
2024-01-03T09:20:52.44+00:00

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.User's image

but while using dotnet run in debug mode I am unable to run it I am getting below exception .

User's image

Could you please suggest me how Can I fix this issue .

.NET
.NET
Microsoft Technologies based on the .NET software framework.
3,921 questions
C#
C#
An object-oriented and type-safe programming language that has its roots in the C family of languages and includes support for component-oriented programming.
11,012 questions
Microsoft Intune Linux
Microsoft Intune Linux
Microsoft Intune: A Microsoft cloud-based management solution that offers mobile device management, mobile application management, and PC management capabilities.Linux: A family of open-source Unix-like operating systems.
52 questions
{count} votes

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.