Is ISet Interface available in Mono? I can't seem to find it.
EDIT: After setting Target Framework to 4.0 in MonoDevelop I am still getting the error:
Error CS0246: The type or namespace name ISet could not be found. Are
you missing a using directive or an assembly reference?
Can anyone with Mono confirm if ISet works for them?
You have to target framework 4.0 for the ISet interface to be availabe.
The interface is in the System.Collections.Generic namespace, so you either need to specify the full name System.Collections.Generic.ISet or have this using statement:
using System.Collections.Generic;
According to the Mono compatibility page, Mono 2.10.8 supports everything in framework 4.0, except WPF, EntityFramework and WF, part of WCF.
Related
I have a console application in visual studio 2015.(.Net FrameWork 4.8)
I've added 3 dlls to this app by NuGet installation like below :
System.Security.Cryptography.Algorithms
System.Security.Cryptography.Encoding
System.Security.Cryptography.Primitives
But i have error in this line of c# :
using System.Security.Cryptography.Algorithms;
The type or namespace name 'Algorithms' does not exist in the
namespace 'System.Security.Cryptography' (are you missing an assembly
reference?)
What is the problem and how can i fix it?
Two things to note here:
The AesGcm implementation you're looking for is not available for .NET Framework 4.8, hence the failure to resolve the desired type name. For a cross-platform implementation it looks like you'll need to upgrade to .NET 5.0
System.Security.Cryptography.Algorithms is not a namespace - it's just the name of the assembly (the DLL file on disk) that contains a number of cryptographic algorithm implementations. All public types contained in the corresponding DLL are namespaced to System.Security.Cryptography, so the qualified type name for AesGcm would have been:
System.Security.Cryptography.AesGcm
i have added a Reference of ThoughtWorks.Selenium.core.dll to my project but the project gives me an error while
using ThoughtWorks.Selenium.core;
Error: The type or namespace name 'ThoughtWorks' could not be found
Target Framework: .NET Framework 4.0 (Not .NET Framework 4.0 Client Profile)
I'm using Sharp Developer tool not Visual Studio
what am i doing Wrong?
Whilst the assembly name is ThoughtWorks.Selenium.core the assembly itself does not have any namespaces using that name. All the types are in a Selenium namespace. So you should change your using statement to:
using Selenium;
I downloaded the C# client driver from http://www.seleniumhq.org/
I need to change the .NET framework of an existing solution from 4.5.1 to 4.0.
Several of the projects in the solution reference OData.
I have updated the references (luckilly NuGet is used here) but it seems like the namespaces are different, or I've made a glaring error somewhere.
I get the following errors when I try a build:
The type or namespace name 'Http' does not exist in the namespace 'System.Web' (are you missing an assembly reference?)
This is a typical reference list:
using System.Web.Http.OData.Builder;
using System.Web.Http.OData.Extensions;
No amount of changing references seems to help, so I'd be grateful for any suggestions!
It looks like this is the reason:
http://docs.telerik.com/data-access/developers-guide/using-web-services/asp.net-web-api/developer-guide-wcfservices-web-api-install-nuget-netframework40
I am working with Entity Framework in asp.net c# framework 3.5
I have generated entity classes using poco generator template.
But I am getting following error:
The type or namespace name ObservableCollection could not be found
(are you missing a using directive or an assembly reference?)
FYI System.Collections.ObjectModel is also added in class.
What could be wrong? How to resolve it?
using System.Collections.ObjectModel;
Add WindowsBase to your reference.
#Riz Please ensure that your project has a reference to System.Windows as it appears that ObservableColletion is contained in System.Collections.ObjectModel namespace which is in System.Windows in .Net 4.0 and System.Collection.ObjectModel in .Net 3.0 & 3.5. It wasn't available before that. In silverlight it can be found in System.Collections.ObjectModel.
Make sure System.Data.Entity Dll is version 4... not 2. Looks like it exist only on .net framework 4.0
I think ObservableCollection only exists in .NET 4.0.
I've created a Class Library project called Core. The default namespace is XXX.Tasker.Core.
I've created another Console project which references Core. In my Main() I've got some calls to stuff inside the Core but I'm getting an error:
The type or namespace name 'Core' does
not exist in the namespace
'XXXX.Tasker' (are you missing an
assembly reference?)
The only thing I can think of is that the fact my assembly name is Core might be confusing it.. but that really doesn't make much sense.
Any other suggestions?
The problem turned out to be that Core was compiled as .Net Framework 4 and the Console was .Net Framework 4 Client Profile. Apparently you'll just get really weird errors instead of a proper notification when this occurs.. thanks MS! ;)