MonoDevelop: Semi cryptic error CS0016 - c#

Here's the error I'm getting:
Error CS0016: Could not write to file Fact.Apprentice.Core', cause: Type '<>__AnonType02' was not completed. (CS0016) (Fact.Apprentice.Core - Mono)
If I compile using MonoDevelop + Microsoft .NET, no such error shows up. When using Mono framework, I am unable to compile because of this. Behavior identical for Mac or PC installation.

This kind of error usually indicates compiler bug. The most likely source will be some of your LINQ queries. You could also try Mono 2.11 which should give you better error message.

Related

Compiling error in Geany IDE : While compiling Mono C# code Error code: Process Failed (The system cannot find the specified file)

Lately iam trying new code editors here geany is best and lightweight. My problem is with mono c# compiler Geany builds c,c++,java,php,ada,python code but having a problem while compiling to mono c# compiler.
on windows 10 64bit and i have also set environment path variables for mono c# compiler.
its showing the below specified error code:
Error code: Process Failed (The system cannot find the specified file)

Web Assembly not compiling with linker error [Uno Platform]

So, I have been trying to compile a project in web assembly with Uno Platform, but I have not been able to successfully compile due to a linker error, This error is something like this:
Fatal error in Mono IL Linker
Mono.Linker.MarkException: Error processing method: 'System.Void Microsoft.Xaml.Interactivity.Behavior::.cctor()' in assembly: 'Microsoft.Xaml.Interactivity.dll' ---> Mono.Cecil.ResolutionException: Failed to resolve Uno.Diagnostics.Eventing.IEventProvider Uno.Diagnostics.Eventing.Tracing::Get(System.Guid)
I thought that maybe the Uno.Diagnostics.Eventing was missing or something, so, I've installed but after doing that the error persists.
I don't know what the error could be or if it is related to something else, anyone can give a hand?
Well, it seems that for my specific version of Uno.WebAssembly (3.0.17) I needed the package Uno.Microsoft.Xaml.Behaviors.Uwp.Managed to be on version 2.0.2-uno.79 to work. Simple as that

Can i build C# projects on Ubuntu with Jenkins?

We have Jenkins running on an Ubuntu OS 18.04.01 LTS and an older project written in C# / .NET 4.5
The application was always build manually in the past and I would like to use Jenkins to introduce CI so nobody needs to build the project manually anymore. The application does not have to run on Linux or anything like that, we just need the buildfiles (executables and DLL files). Is it possible to build this C# solution with Jenkins on Ubuntu?
I know about MONO and XBUILD but actually I can't manage to build the project under ubuntu because of different issues which do not happen under Windows, e.g. see here:
UserControls/ExpandablePanel.cs(33,35): error CS1043: Invalid accessor body `=>', expecting `;' or `{'
UserControls/ExpandablePanel.cs(33,66): error CS1043: Invalid accessor body `=>', expecting `;' or `{'
UserControls/ExpandablePanel.cs(35,41): error CS1043: Invalid accessor body `=>', expecting `;' or `{'
UserControls/ExpandablePanel.cs(37,40): error CS1043: Invalid accessor body `=>', expecting `;' or `{'
UserControls/ExpandablePanel.cs(133,22): error CS1644: Feature `pattern matching' cannot be used because it is not part of the C# 6.0 language specification
UserControls/PagedDataGridView.cs(441,68): error CS1043: Invalid accessor body `=>', expecting `;' or `{'
1 Warning(s)
6 Error(s)
Is it even possible or do I definitely need to run Jenkins on a Windows machine?
It is possible. You can build C# project on Linux/Ubuntu. Try building using mono. When you will install mono package, one of the binaries that you will get will be xbuild. To build just invoke the following command:
xbuild <path to csproj/solution file>
Try building this manually first and then integrate with jenkins.

Cosmos C# IL2CPU Error While invoking?

I've been coding a OS with cosmos in c#. It's 350 lines long. I've just got an error saying "Error Occurred while invoking IL2CPU"
Found out why, you need to remove
console.beep();
console.beep isn't part of the userkit installation. Only in the Devkit installation.

InvalidProgramException in Team Foundation Server Sample

Hi I get an System.InvalidProgramException while trying to run the Example Project called "C# Example.WorkItemBrowser".
The Exception also apears when I try to execute these lines:
TeamFoundationServer tfserver = new TeamFoundationServer("http://localhost:8085");
tfserver.EnsureAuthenticated();
WorkItemStore store = new WorkItemStore(tfserver);
Console.WriteLine(store.Projects.Count);
I'm using the 2008 Visual Studio SDK for that.
PEverify for the assembly Microsoft.TeamFoundation.WorkItemTracking.Client.dll
got this otuput:
[MD]: Error: Value class has neither fields nor size parameter. [token:0x020000B3]
[MD]: Error: Value class has neither fields nor size parameter. [token:0x020000BF]
[MD]: Error: Value class has neither fields nor size parameter. [token:0x020000C4]
3 Error(s) Verifying Microsoft.TeamFoundation.WorkItemTracking.Client.dll
A fresh download and install of the SDK as well as deinstall and install as well as installing .net 3.5 sp1 again didn't help.
Is something wrong with the description of my problem or did it just not happen anywhere else?
I just a very similar question here.
Turns out, you have to have Team Explorer installed on the machine you are executing this code on.

Categories

Resources