Showing posts with label Mono. Show all posts
Showing posts with label Mono. Show all posts

Sunday, January 03, 2021

error : Your project does not reference ".NETFramework,Version=v4.7.2" framework

I am trying to have a solution/project that can be built using Visual Studio 2019, MonoDevelop and dotnet. Building the project using mono (msbuild project.csproj) after building using dotnet I am getting the error message below.  

 

Build started 1/3/2021 1:41:21 AM.
Project "/home/u1/gitprj/mopcua/MonoOPC/opcuac/opcuac.csproj" on node 1 (default targets).
/usr/lib/mono/xbuild/Microsoft/NuGet/Microsoft.NuGet.targets(186,5): error : Your project does not reference ".NETFramework,Version=v4.7.2" framework. Add a reference to ".NETFramework,Version=v4.7.2" in th$
 "TargetFrameworks" property of your project file and then re-run NuGet restore. [/home/u1/gitprj/mopcua/MonoOPC/opcuac/opcuac.csproj]
Done Building Project "/home/u1/gitprj/mopcua/MonoOPC/opcuac/opcuac.csproj" (default targets) -- FAILED.

Build FAILED.

"/home/u1/gitprj/mopcua/MonoOPC/opcuac/opcuac.csproj" (default target) (1) ->
(ResolveNuGetPackageAssets target) ->
  /usr/lib/mono/xbuild/Microsoft/NuGet/Microsoft.NuGet.targets(186,5): error : Your project does not reference ".NETFramework,Version=v4.7.2" framework. Add a reference to ".NETFramework,Version=v4.7.2" in $
he "TargetFrameworks" property of your project file and then re-run NuGet restore. [/home/u1/gitprj/mopcua/MonoOPC/opcuac/opcuac.csproj]

    0 Warning(s)
    1 Error(s)

Time Elapsed 00:00:01.04
 

Workaround was to delete <project>/obj/project.assets.json and then rebuild. 

Reference:

https://stackoverflow.com/questions/52833741/your-project-does-not-reference-netframework-version-v4-6-2-framework-add-a


Sunday, November 02, 2014

The following add-ins could not be started MonoDevelop.GnomePlatform

Installing MonoDevelop in OpenSUSE 12.2 from its repository was very easy. When running it for the first time though I got the message:
The following add-ins could not be started:
The root of the trace shows
MonoDevelop.GnomePlatform,2.8
A quick search shows that MonoDevelop depends on libgnomeui. This should have been part of dependencies when installing the application but well....

Below is the screen shot of the error message.
References:
http://software.1713.n2.nabble.com/MonoDevelop-and-openSUSE-12-1-td7462957.html

[2013/04/09] - Same issue observed in OpenSUSE 12.3 and also the same fix.
[2014/11/02] - Same issue observed in OpenSUSE 13.3, mondevelop 3.0.6 and the same fix.

Monday, October 27, 2014

Monodevelop does not start on Linux Mint 17

I have installed Monodevelop using Software Manager in Linux Mint 17. It seems like all went okay but nothing was working. It turns out that missing dependencies was the culprit. To fix it do the following:

$: sudo apt-get install mono-complete
$: sudo apt-get install gtk-sharp3

Reference(s):
http://stackoverflow.com/questions/25791149/monodevelop-will-not-start-in-mint-17

CPP Quick Guide

Basics Hello world User input While loop If statement For loop Switch statement Read file using ifstream Write to a file using ofstr...