.NET 2.2 has been EOL, cannot build on Linux
.NET 2.2 has been EOL as https://docs.microsoft.com/en-us/dotnet/core/install/linux.
I tried with dotnet-sdk-2.2.207-linux-x64.tar.gz, however, it says :
Build FAILED.
/home/galaxy/git/iFakeLocation/ins/dotnet-sdk-2.2.207/sdk/2.2.207/Microsoft.Common.CurrentVersion.targets(1183,5): error MSB3644: The reference assemblies for framework ".NETFramework,Version=v4.5" were not found. To resolve this, install the SDK or Targeting Pack for this framework version or retarget your application to a version of the framework for which you have the SDK or Targeting Pack installed. Note that assemblies will be resolved from the Global Assembly Cache (GAC) and will be used in place of reference assemblies. Therefore your assembly may not be correctly targeted for the framework you intend. [/home/galaxy/git/iFakeLocation/iFakeLocation/iFakeLocation.csproj]
Would you use .NET 3.1 instead ? 3.1.8 LTS will be EoL at December 3, 2022 as https://dotnet.microsoft.com/platform/support/policy/dotnet-core.
Linux is currently not a priority; but the project targets multiple frameworks. It looks like it's trying to target against .NET 4.5 so you might need to fix your build parameters (ie. the -f parameter).
https://docs.microsoft.com/en-us/dotnet/core/tools/dotnet-build
Once the iOS 14 issue is sorted out I'll look at retargetting to a newer version of .NET Core.
I find '.NET Framework' has disappeared since .NET Standard v2.1 as https://docs.microsoft.com/en-us/dotnet/standard/net-standard.
However, after remove net45 from iFakeLocation.csproj, dotnet build build only a dll file ./iFakeLocation/bin/iFakeLocation.dll.
Both Linux and macOS be the same, dll and Resources without package to exe file.
Would you help me on this ?
I find I can run it with dotnet run -c Release -f netcoreapp2.2 on macOS.
However, dotnet run -c Release -f netcoreapp3.1 on ubuntu 20.04 says:
Unable to start iFakeLocation using default web browser. and exit.
In Program.cs, update the preprocessor directives.
from: #if NETCOREAPP2_2 to: #if NETCOREAPP3_1