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

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

Related

Method System.IO.Path.GetDirectoryName not found when creating an application installer WPF

Severity Code Description Project File Line Suppression State
Error MSB4186 Invalid static method invocation syntax:
"[System.IO.Path]::GetDirectoryName(C:\Users\emmet\OneDrive - CBRE,
Inc\Work\SourceTree\CBREDesktopApplication%28Net5Dev%29\CBRE
Application\CBRE Application.csproj)". Method
'System.IO.Path.GetDirectoryName' not found. Static method invocation
should be of the form: $([FullTypeName]::Method()), e.g.
$([System.IO.Path]::Combine(a, b)). Check that all parameters are
defined, are of the correct type, and are specified in the right
order. Application Installer C:\Program Files (x86)\Microsoft Visual
Studio\2019\Community\MSBuild\Microsoft\DesktopBridge\Microsoft.DesktopBridge.targets 602
When attempting to create an application installer for a WPF application, I get this error code on Visual Studio 2019. Any ideas? Project is .Net 5.0

Why does build fail with the error - Type or namespace name '' could not be found in the global namespace

I am trying to build a project using visual studio as well as MSBuild.exe. When the code is built using visual studio, there are no issues and the build runs successfully, but when built through MSBuild.exe, the following error is thrown - "The type or namespace name 'eCom' could not be found in the global namespace". This error is being recorded from various lines in the code, couple of the erroneous lines have been written below:
protected global::eCom.Web.DataViewExtender view3Extender;
and
using eCom.Web;
The dll for 'eCom' is successfully getting created on the server.
Recently dot net framework 4.6.2 was installed on the build server, I wonder if that has anything to do with the error.

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.

Visual studio script not recognizing Cuite_BrowserWindow

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.

Report definition file invalid

I have Created a Console application to export Report.rdlc to Output.pdf(This Report.rdlc created using Report Builder 3.0 as Report.rdl then renamed it to Report.rdlc).I did include Microsoft.WinForms.ReportViewver 9.0.0.0 dll as reference and used LocalReport.Render() method for this purpose.Am using VS2008 and Adventureworks 2008 DB..NET framework is 3.5
I get an error while compiling as:
Error 1 The report definition is not valid. Details: The report definition has an invalid target namespace 'http://schemas.microsoft.com/sqlserver/reporting/2010/01/reportdefinition' which cannot be upgraded. C:\Documents and Settings\username\My Documents\Visual Studio 2008\Projects\Rdclrender\Rdclrender\Report.rdlc Rdclrender
I have gone through all the posts in here and msdn website none helped me.
What is the exact cause for the error?
Found a web-link says:
However, I still have the ability to convert the report to RDLC 2008 format which is weird. .NET Framework 3.5 “Microsoft Report Viewer” control doesn’t support RDLC 2008 format in Local mode.
here : http://ahmedelbaz.com/tag/rdlc/

Categories

Resources