I get this error continuously on mac VS 7.4.3 when trying to run simple web form.
CSC : error CS1902: Invalid option 'portable' for /debug; must be full or pdbonly
I have tried manually updating .csproj file with:
<DebugType>portable</DebugType>
But did not help anything; I am understanding it's from package being window's / microsoft based; but have no idea how to fix to run with mac.
/Library/Frameworks/Mono.framework/Versions/5.8.1/lib/mono/msbuild/15.0/bin/Microsoft.Common.CurrentVersion.targets(2057,5): warning MSB3245: Could not resolve this reference. Could not locate the assembly "System.Web.Entity". Check to make sure the assembly exists on disk. If this reference is required by your code, you may get compilation errors.
I have also commented out all instances of 'portable' in the file above.. ?



I believe this has to do with compiling with an outdated compiler (aka: MSBuild.exe).
For my setup I have a build.bat file with one line:
So, MSBuild.exe is called and compiles the project based on the .csproj into an exe.
If instead of using the compiler from visual studio community I try and use this other one:
Bam, I get compile error:
"Invalid option 'portable' for /debug; must be full or pdbonly"
So conclusion for me was that MSBuild/15.0 worked with the new debug options and MSBuild/14.0 did not.