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

Aditya Dalai 20 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,482 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.
10,423 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.
45 questions
{count} votes