2017-06-22 6 views
0

Je reçois le message suivant, que je ne suis pas en mesure de retrouver dans une configuration. Il y a quelques articles pertinents, mais aucun ne semble répondre.Impossible de créer des projets en solution?

Échec de la construction. chaîne de langversion inconnu « »

Si je regarde les propriétés de construction pour le projet, il lance une exception, qui semble être la cause de l'erreur de construction:

System.Reflection.TargetInvocationException: Exception has been thrown by the target of an invocation. ---> System.Exception: Unknown LangVersion string '' 
    at MonoDevelop.CSharp.Project.CSharpCompilerParameters.get_LangVersion() [0x00000] in <filename unknown>:0 
    at MonoDevelop.CSharp.Project.CompilerOptionsPanelWidget..ctor (MonoDevelop.Projects.DotNetProject project) [0x00000] in <filename unknown>:0 
    at MonoDevelop.CSharp.Project.CompilerOptionsPanel.CreatePanelWidget() [0x00000] in <filename unknown>:0 
    at MonoDevelop.Ide.Gui.Dialogs.OptionsDialog.CreatePageWidget (MonoDevelop.Ide.Gui.Dialogs.SectionPage page) [0x00000] in <filename unknown>:0 
    at MonoDevelop.Ide.Gui.Dialogs.OptionsDialog.ShowPage (MonoDevelop.Ide.Extensions.OptionsDialogSection section) [0x00000] in <filename unknown>:0 
    at MonoDevelop.Ide.Gui.Dialogs.OptionsDialog.OnSelectionChanged (System.Object s, System.EventArgs a) [0x00000] in <filename unknown>:0 
    at (wrapper managed-to-native) System.Reflection.MonoMethod:InternalInvoke (System.Reflection.MonoMethod,object,object[],System.Exception&) 
    at System.Reflection.MonoMethod.Invoke (System.Object obj, BindingFlags invokeAttr, System.Reflection.Binder binder, System.Object[] parameters, System.Globalization.CultureInfo culture) [0x00000] in <filename unknown>:0 
    --- End of inner exception stack trace --- 
    at System.Reflection.MonoMethod.Invoke (System.Object obj, BindingFlags invokeAttr, System.Reflection.Binder binder, System.Object[] parameters, System.Globalization.CultureInfo culture) [0x00000] in <filename unknown>:0 
    at System.Reflection.MethodBase.Invoke (System.Object obj, System.Object[] parameters) [0x00000] in <filename unknown>:0 
    at System.Delegate.DynamicInvokeImpl (System.Object[] args) [0x00000] in <filename unknown>:0 
    at System.MulticastDelegate.DynamicInvokeImpl (System.Object[] args) [0x00000] in <filename unknown>:0 
    at System.Delegate.DynamicInvoke (System.Object[] args) [0x00000] in <filename unknown>:0 
    at GLib.Signal.ClosureInvokedCB (System.Object o, GLib.ClosureInvokedArgs args) [0x00000] in <filename unknown>:0 
    at GLib.SignalClosure.Invoke (GLib.ClosureInvokedArgs args) [0x00000] in <filename unknown>:0 
    at GLib.SignalClosure.MarshalCallback (IntPtr raw_closure, IntPtr return_val, UInt32 n_param_vals, IntPtr param_values, IntPtr invocation_hint, IntPtr marshal_data) [0x00000] in <filename unknown>:0 

Dois-je indiquer une langue quelque part dans les paramètres monodevelop? Est-ce une langue parlée ou un langage de programmation?

+0

Essayez de vérifier la version de langue dans les paramètres du projet. Passez à autre chose, puis revenez à Default. https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/compiler-options/langversion-compiler-option – EJD

+0

J'ai essayé ceci. Mêmes résultats –

+0

Si vous ouvrez le fichier csproj dans l'éditeur de texte, voyez-vous Par défaut EJD

Répondre

0

j'ai pu résoudre ce problème en mise à niveau vers Mono 5,10

sudo apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv-keys 3FA7E0328081BFF6A14DA29AA6A19B38D3D831EF

echo "deb http://download.mono-project.com/repo/ubuntu trusty main" | sudo tee /etc/apt/sources.list.d/mono-official.list

sudo apt-get update

sudo apt-get install mono-devel