So I have the following line at line 1 of the file.
using Microsoft.Extensions.Logging;
On building it throws
CS0234 C# The type or namespace name 'Logging' does not exist in the namespace (are you missing an assembly reference?)
Have tried searching around but was unable to find any solution or reason. The project is set to build in .net core 2.0, have downloaded and installed .NET Core 2.0 SDK (v2.1.202), but the error remains.
Have tried changing the build version to 2.1, 3.0 didn't help either.
Related
I am creating tests in C# Selenium Specflow. My framework is fine and builds but when I add a Specflow Feature File and build my project I get the error:
Error CS0234 The type or namespace name 'TestFixtureSetUpAttributeAttribute' does not exist in the namespace 'NUnit.Framework' (are you missing an assembly reference?) Olympus D:\Selenium Projects\companyname framework for interviews\Olympus2\Tests\SpecFlowFeature1.feature 3 Active
The version of Specflow installed is v4.0.30319
Why does this error occur?
In my Base class I am using [BeforeScenario()] from TechTalk.SpecFlow;
The error complains about TestFixtureSetUp. I am not using this attribute anywhere. This attribute I used to use before from Nunit Framework, this was few years ago before BDD.
Any help appreciated, thanks.
I am downgrading my .net project targeted on .net4.5 to .net 4.0. I have SQlite DLLs being used in this project. when i changed target framework in project properties. biuld errors came as:
Error 11 The type or namespace name 'SQLite' does not exist in the
namespace 'System.Data' (are you missing an assembly
reference?) D:\Users\nehat\Desktop\skillmeterTrial\SkillMeter\SkillMeter\DataAccessLayer\DataAccessADO.cs 10 19 SkillMeter
Error 12 The type or namespace name 'SQLite' does not exist in the
namespace 'System.Data' (are you missing an assembly
reference?) D:\Users\nehat\Desktop\skillmeterTrial\SkillMeter\SkillMeter\DataAccessLayer\SQLiteHelper.cs 10 19 SkillMeter
Error 13 The type or namespace name 'SQLiteConnection' could not be
found (are you missing a using directive or an assembly
reference?) D:\Users\nehat\Desktop\skillmeterTrial\SkillMeter\SkillMeter\DataAccessLayer\SQLiteHelper.cs 30 24 SkillMeter
Though i have added dlls downloaded from sqlite.org. I am not able to find out the solution to thi. Can Somebody please help?
Have you got the System.Data.SQLite DLLs?
You need to use sqLite dlls which are compatible with .Net 4.0. (Probably you are using the DLLs which are compatible with 4.5).
Visit System.Data.SQLite download page
Download the new DLLs (.net 4.0 supported) and remove old DLLs from project and new ones.
I am unable to include System.Threading.Tasks in my project.
I am Using Asp.net 2013 (4.5)
I am getting the following error -
The type or namespace name 'Tasks' does not exist in the namespace 'System.Threading' (are you missing an assembly reference?)
I had refered earlier questions and they suggested in 4.0+ versions of ASP.NET it will work fine but I coudnt include it in my project.
Help me thanks.
System.Threading.Tasks.Task is in mscorlib which in .NET4.5. My project is not targeting, so in project properties need to change the target to 4.5.
The type or namespace name 'DataServiceKeyAttribute' does not exist in
the namespace 'System.Data.Services.Common' (are you missing an
assembly reference?)
This is the error that I have been getting and its driving me crazy. I am trying to build a web portal and I am following this tutorial.
Now after extensive search I am done and out. My target Framework is .Net Framework4 and there are some assemblies, specially the one from CRM sdk with version 5.0.
Could this be an issue?
This Type is defined in the .NET Framework Assembly Microsoft.Data.Services.Client. Ensure that this assembly is referenced by your project and it should work fine.
I am quite sure this issues has not yet been addressed before.
I am adding [assembly: RequiresSTA] to my AssemblyInfo.cs file in my C# project.
But it does not like the RequiresSTA word.
VS states "The type or namespace name"RequriesSTA" could not be found (are you missing or using directive or an assembly reference?)".
I am referencing WatIn 2.1 and NUnit 2.4.1.
I have added using nunit.framework & WatIn.core.
My C# project is output type 'Console Application' and target framework '.Net Framework 4'
Any suggestions?
Thank You