Visual studio script not recognizing Cuite_BrowserWindow - c#

Visual Studio script is not recognizing Cuite_BrowserWindow.
On build I get the following message:
The name Cuite_browserWindow does not exist in the current context
I have added the following references:
CodedUIFramework, UnitTestFramework, UITest.Extension, UITesting

Figured it out. Was missing a reference to CUITe.Controls.HtmlControls.

Related

CS1685 using definition from 'c:\Windows\Microsoft.NET\Framework\v4.0.30319\mscorlib.dll'

Compiler Error Message: CS1685: Warning as Error: The predefined type 'System.ObsoleteAttribute' is defined in multiple assemblies in the global alias; using definition from 'c:\Windows\Microsoft.NET\Framework\v4.0.30319\mscorlib.dll' when i am running the wepapi project in Visual Studio 2013 i am facing this problem please help me to resolve
enter image description here
enter image description here
when i am run the webApi project in visual studio 2013 i am facing this issue

Build succeeds even though the editor shows errors and and installation of NuGet package fails

In Visual Studio 2017, I have a solution with the following projects:
My.Project
My.Project.Commons
Test.My.Project
Test.My.Project.Commons
In one of the test files from Test.My.Project, I have this statement:
using My.Project.Commons;
If I hover over it, it shows this error message:
The type or namespace name 'Commons' does not exist in the namespace
'My.Project'(are you missing an assembly reference?)
However if I Clean and Build(or Clean and Rebuild) the solution, there are no errors.
When I try to install a NuGet package, I get the same error:
The type or namespace name 'Commons' does not exist in the namespace
'My.Project'(are you missing an assembly reference?)
So why does my build succeed?
I believe that my Test projects are not built properly, because I can't run any tests.
On another solution however, I can run tests with no problem, so I doubt there is an issue with Visual Studio as a whole(just with my current project).
I tried:
Restarting Visual Studio.
Removing all projects from the solution and adding them back.
None of these things worked though.
If you are using resharper, suspend and resume resharper and it will refresh the cache
If you go into VS options resharper you will find the the options

Visual Studio 2017 Extension Development

Hi I want to upgrade my extension to visual studio 2017 but I got Microsoft.VisualStudio.Shell.RegistrationAttribute error, but I have been already added this reference?I got this error in compile time. Is there any reference to be added or else? Any comment about that?
D:\Visual Studio 2017\VSSDK\VisualStudioIntegration\Common\Assemblies\v4.0\Microsoft.VisualStudio.Shell.Immutable.10.0.dll ,version :10.0.0.0
My Error is
Severity Code Description Project File Line Suppression State
Error CreatePkgDef : error : ArgumentException: No Visual Studio registration attribute found in this assembly.
Severity Code Description Project File Line Suppression State
Error The assembly should contain an instance of the attribute 'Microsoft.VisualStudio.Shell.RegistrationAttribute' defined in assembly 'Microsoft.VisualStudio.Shell.Immutable.10.0' version '10.0.0.0'
Severity Code Description Project File Line Suppression State
Error at Microsoft.VisualStudio.Tools.CreatePkgDef.ProcessAssembly(String fileName, Hive hive, PkgDefContext context, Boolean register, RegistrationMode mode) in f:\dd\src\vssdk\VSIntegration\Tools\src\CreatePkgDef\CreatePkgDef.cs:line 303
Add GeneratePkgDefFile as false like below in the csproj file
<GeneratePkgDefFile>false</GeneratePkgDefFile>
Finaly I found the solution,I remove all references of Microsoft.VisualStudio.****,after than I add my project a new vsix in visual studio 2017 that time I download all packages from nuget and my project is compile now.

The name "NAME" does not exist in the namespace: xaml issue in Visual Studio 2015

I'm pretty new to visual studio and am building a simple WPF app that queries some data from an external database and graphs it on the screen. I found several graphing toolkits for WPF apps (DynamicDataDisplay, MetroChart, and LiveCharts). However, for all of them, I receive the following error when getting started:
"The name "NAME" does not exist in the namespace "NAMESPACE OF TOOLKIT""
For example, with MetroChart, I have the following
xmlns:chart="clr-namespace:De.TorstenMandelkow.MetroChart;assembly=De.TorstenMandelkow.MetroChart"
in my window declaration but when I try to use the resource:
<chart:PieChart />
I get the above error with the line underlined in blue.
I have added the correct dll as a reference and have also attempted to fix the issue by "unlocking" the dll and restarting both Visual Studio and my machine.
In addition, my code builds and runs fine, but the error means that I can't work with my xaml in the designer due to invalid markup.
Thanks for the help!

Compiler error Visual studio mac

I'm working on Visual Studio for Mac preview. My project comes from a git repository and when i try to compile it, the compiler gives me this error:
Error: Error building target IncludeRoslynCompilerFilesToItemGroup: Item has already been added. Key in dictionary: 'Link' Key being added: 'Link' (NameOfTheProject)
I can't understand this error and i didn't find any resource about it on the web. Can you please help me?
Thank you.
I have the same problem and the solution is just remove two references. like this
Microsoft.Net.Compilers
Microsoft.CodeDom.Providers.DotNetCompierPlataform
I found this solution at roslyn compiler not copied to AspnetCompileMerge folder using msbuild

Categories

Resources