Entity Framework 5.0 with vs 13 - c#

There is an issue with my visual studio. When i try to generate the edmx file it does all the process very well. But as soon as i try to build the solution it throws so many errors. I am not sure if this issue is with visual studio orentity framework.
Please check the image i have attached, and the errors as well.
Here are the errors..
Error 7 A using namespace directive can only be applied to namespaces;
'System' is a type not a namespace
Error 73 The type or namespace name 'DbContext' could not be found
(are you missing a using directive or an assembly reference?)
There are so many errors.
Please help

Try to clean contents of ".vs" folder in the root of solution

Related

How Can I resolve this assembly reference issue in ASP.Net project?

I'm going to run the ASP.net website on Visual Studio 2019
It used the ASP.NET MVC framework With NHibernate.
The solution has 5 projects including Domain, UI, Media, Resources, ...
When building the solution, gets these errors.
CS0234 The type or namespace name 'MediaServices' does not exist in the namespace 'ESK.Business' (are you missing an assembly reference?) Pazar.Domain E:\project\esk\src\Domain\ESK.Domain\Subscribers\MoveMediaCommand.cs
CS0234 The type or namespace name 'Resources' does not exist in the namespace 'ESK' (are you missing an assembly reference?) ESK.Domain E:\project\esk\src\Domain\ESK.Domain\BackgroundTasks\BetterTask\Commands\TaskNotifyGalleryOnCreateEmailCommand.cs
The first error is concerned soap service but I can't resolve it.
The second error is concerned the Resources project that has the App_GlobalResources package.
Please help me to fix these errors. I think it's ABC in programming.

Xamarin.Forms - 'Foundation' could not be found

I've created a new 'Blank Xaml App (Xamarin.Forms Shared)' app in Microsoft Visual Studio Enterprise 2015 version 14.0.25123.00 Update 2.
Immediately after creating the project, I was greeted with 217 errors.
Restarting Visual Studio removed most of those, but 35 still remain.
The first two errors are about Foundation and UIKit not being found. I believe these two might also cause the rest of the errors.
Does anyone have some ideas as to how to solve these?
Error CS0246 The type or namespace name 'Foundation' could not be found (are you missing a using directive or an assembly reference?)
Error CS0246 The type or namespace name 'UIKit' could not be found (are you missing a using directive or an assembly reference?)
If you are missing the reference to Xamarin.iOS, try re-adding it manually:
Under the Xamarin.iOS project, right click References > Add Reference...
In the references dialog, on the left hand side, click on Assemblies, then Framework. Search for Xamarin.iOS and select it to add the reference.
If the Xamarin.iOS assembly isn't listed, take a look under this path:
C:\Program Files (x86)\Reference Assemblies\Microsoft\Framework\Xamarin.iOS\v1.0
If the assembly is missing from that directory, try repairing the Xamarin installation - Windows Programs and Features > Xamarin > Repair.

Upgrade MS VS2013 to MS VS2015 Error CS0234 The type or namespace name 'Reporting' does not exist in the namespace 'Microsoft'

Both Question and Solution included here.
When opening a Microsoft Windows Application MS VS2013 C# Professional in MS VS2015 C# Professional, the following error displayed:
Error CS0234 The type or namespace name 'Reporting' does not exist in the namespace 'Microsoft' (are you missing an assembly reference?)
In VS2015, under Solution Explorer, under References, for Microsoft.ReportViewer.Common and Assembly Microsoft.ReportViewer.WinForms, the paths were missing under their Properties. The paths are not editable.
To solve this problem, under References, delete Microsoft.ReportViewer.Common and Assembly Microsoft.ReportViewer.WinForms. Then re-add these references (found under Extensions). The paths were automatically entered, and the compiling errors disappeared.
The best way to include the Microsoft ReportViewer control in your project is to install it via the NuGet package manager. It should keep track of the references and their paths automatically.

Microsoft.VisualStudio.PlatformUI missing

I'm trying to follow this tutorial
http://msdn.microsoft.com/en-us/library/vstudio/ee943166.aspx
, but
using Microsoft.VisualStudio.PlatformUI;
fails for me. I get an error in VS 2012 and .NET Framework 4.5
The type or namespace name 'VisualStudio' does not exist in the namespace 'Microsoft' (are you missing an assembly reference?)
Would be happy if someone tells how to fix it.
Thanks
The problem was solved by downloading and installing Microsoft Visual Studio 2012 SDK and adding Microsoft.VisualStudio.Shell.11.0.dll as ProgramFOX proposed.
Add a reference to Microsoft.VisualStudio.Shell.11.0.dll

Missing directive or assembly reference using WMI ManagementObjectSearcher?

I have found this link:
Detect Antivirus on Windows using C#
However when I try this code in visual c# express edition 2008 it says :
Error 1 The type or namespace name 'ManagementObjectSearcher' could not be found
(are you missing a using directive or an assembly reference?)
C:\Users\Andy\Documents\Visual Studio 2008\Projects\ConsoleApplication1\ConsoleApplication1\Program.cs 15 17 ConsoleApplication1
Amongst other similar errors on the 2 lines which seem important!
Looks like the code segment is missing some imports or something?
I am using Windows 7... Please help!
Andy
You are missing a reference to the assembly containing the type ManagementObjectSearcher, which is in the System.Managementnamespace. Add this namespace and it should work.
You will have to rightclick the project -> add reference and add the System.Management assembly. System.Managment is not added automatically with the creation of a new project.
WMI reference
WMI + C#

Categories

Resources