Reputation: 1
Currently I have a WinForm App (.NET Framework) that I am currently publishing to a local folder on my PC. It is creating an arm, arm64, musl-x64, x64, and an x86 folder. My target platform/CPU is set to x86 everywhere that I can change it in Visual Studio. The folders I don't want are all above 7MB in size, making the publish folder close to 80MB. However, when I delete them from the publish folder, the setup.exe won't run because it's looking for those folders. How can I only have it publish the x86? My target Framework version is v4.7.2. Below is in my csproj file:
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|x86' ">
<PlatformTarget>x86</PlatformTarget>
<DebugSymbols>true</DebugSymbols>
<DebugType>full</DebugType>
<Optimize>false</Optimize>
<OutputPath>bin\Debug\</OutputPath>
<DefineConstants>DEBUG;TRACE</DefineConstants>
<ErrorReport>prompt</ErrorReport>
<WarningLevel>4</WarningLevel>
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|x86' ">
<PlatformTarget>x86</PlatformTarget>
<DebugType>pdbonly</DebugType>
<Optimize>true</Optimize>
<OutputPath>bin\Release\</OutputPath>
<DefineConstants>TRACE</DefineConstants>
<ErrorReport>prompt</ErrorReport>
<WarningLevel>4</WarningLevel>
</PropertyGroup>
I have tried changing the target platform/CPU to x86 anywhere that it let me change it. The additional arm, arm64, musl-x64, and x64 are still showing up in the published folder.
Upvotes: 0
Views: 46