I just reset my computer, installed Visual Studio 2017, and pulled up a C# WPF project that used to work before I reset my machine (in 2017 RC) and works right now on other machines. This project references a dll called Eagle.Core. I fired it up in Debug and I got a System.IO.FileNotFoundException when calling an extension method (ObservableCollection.ObservableWhere([lamda])) in Eagle.Core:
System.IO.FileNotFoundException occurred
HResult=0x80070002
Message=Could not load file or assembly 'System.Reactive.Linq, Version=3.0.0.0, Culture=neutral, PublicKeyToken=94bc3704cddfc263' or one of its dependencies. The system cannot find the file specified.
Source=Eagle.Core
StackTrace:
at Eagle.Core.Utilities.PclWeakEventManager3.AddHandler(TEventSource source, TEventHandler handler, Func2 converter, Action1 add, Action1 remove)
at Eagle.Core.Collections.ObservableQueriedCollection2..ctor(ICollection1 source, IEnumerable1 initItems, LambdaExpression expression)
at Eagle.Core.Collections.ObservableFilteredCollection1..ctor(ICollection1 source, Expression1 filterExpression)
at ObservableCollectionExtensions.ObservableWhere[T](ICollection1 source, Expression1 filterExpression)
at TestWpf2017.MainWindow..ctor() in C:\Builds\Personal\Projects\TestWpf2017\TestWpf2017\MainWindow.xaml.cs:line 34
Just to be sure, I created a new WPF project and referenced Eagle.Core and called the same method, and sure enough, the problem arose again.
Any suggestions?
More info
I assume it is something with my Visual Studio installation. I had some troubles first installing it, and I had installed the core of Visual Studio (No workloads selected) and then modified it to add the other things I needed.
After this problem arose, I repaired Visual Studio. I hope I do not have to do an uninstall and reinstall. I doubt even that will help. :(
Here is what is installed (found in Help > About Microsoft Visual Studio):
Microsoft Visual Studio Enterprise 2017 Version 15.0.26228.4 D15RTWSVC
Microsoft .NET Framework Version 4.6.01586
Installed Version: Enterprise
Visual Basic 2017 00369-60000-00001-AA352 Microsoft Visual Basic
2017
Visual C# 2017 00369-60000-00001-AA352 Microsoft Visual C# 2017
Visual C++ 2017 00369-60000-00001-AA352 Microsoft Visual C++ 2017
Visual F# 4.1 00369-60000-00001-AA352 Microsoft Visual F# 4.1
Application Insights Tools for Visual Studio Package 8.6.00209.10
Application Insights Tools for Visual Studio
ASP.NET and Web Tools 2017 15.0.30223.0 ASP.NET and Web Tools 2017
ASP.NET Web Frameworks and Tools 2017 5.2.50127.0 For additional
information, visit https://www.asp.net/
Azure App Service Tools v3.0.0 15.0.30209.0 Azure App Service Tools
v3.0.0
Common Azure Tools 1.9 Provides common services for use by Azure
Mobile Services and Microsoft Azure Tools.
JavaScript Language Service 2.0 JavaScript Language Service
JavaScript Project System 2.0 JavaScript Project System
JavaScript UWP Project System 2.0 JavaScript UWP Project System
KofePackagePackage Extension 1.0 KofePackagePackage Visual Studio
Extension Detailed Info
Merq 1.1.13-alpha (2f64b6d) Command Bus, Event Stream and Async
Manager for Visual Studio extensions.
Microsoft MI-Based Debugger 1.0 Provides support for connecting
Visual Studio to MI compatible debuggers
Microsoft Visual Studio VC Package 1.0 Microsoft Visual Studio VC
Package
Mono Debugging for Visual Studio Mono.Debugging.VisualStudio Support
for debugging Mono processes with Visual Studio.
NuGet Package Manager 4.0.0 NuGet Package Manager in Visual Studio.
For more information about NuGet, visit http://docs.nuget.org/.
SQL Server Data Tools 15.1.61702.140 Microsoft SQL Server Data Tools
StylerPackage Extension 1.0 StylerPackage Visual Stuido Extension
Detailed Info
TFS Auto Shelve 6.0 Create a shelveset for the latest version of all
pending changes, automatically. Pending changes from the local TFS
workspaces will be shelved to the TFS Server every "x" number of
minutes when solutions are opened.
TypeScript 2.1.5.0 TypeScript tools for Visual Studio
Visual Studio Tools for Universal Windows Apps 15.0.26228.00 The
Visual Studio Tools for Universal Windows apps allow you to build a
single universal app experience that can reach every device running
Windows 10: phone, tablet, PC, and more. It includes the Microsoft
Windows 10 Software Development Kit.
Xamarin 4.3.0.784 (73f58d6) Visual Studio extension to enable
development for Xamarin.iOS and Xamarin.Android.
Xamarin.Android SDK 7.1.0.41 (9578cdc) Xamarin.Android Reference
Assemblies and MSBuild support.
Xamarin.iOS and Xamarin.Mac SDK 10.4.0.123 (35d1ccd) Xamarin.iOS and
Xamarin.Mac Reference Assemblies and MSBuild support.
As NineBerry stated as a comment under my question, install the correct version of this nuget package in the project nuget.org/packages/System.Reactive.Linq
Related
VS started to "synchronize" the namespace of a file with the folder structure when moving files into another folder. I could not find a setting for this in the options menu and also searching for it online did not result in any useful information.
How can I turn this off?
VS info:
Microsoft Visual Studio Professional 2022
Version 17.4.3
VisualStudio.17.Release/17.4.3+33205.214
Microsoft .NET Framework
Version 4.8.04084
Installed Version: Professional
Visual C++ 2022 00476-80000-00000-AA471
Microsoft Visual C++ 2022
ASP.NET and Web Tools 17.4.326.54890
ASP.NET and Web Tools
AvaloniaPackage Extension 1.0
AvaloniaPackage Visual Studio Extension Detailed Info
Azure App Service Tools v3.0.0 17.4.326.54890
Azure App Service Tools v3.0.0
Azure Functions and Web Jobs Tools 17.4.326.54890
Azure Functions and Web Jobs Tools
C# Tools 4.4.0-6.22580.4+d7a61210a88b584ca0827585ec6e871c6b1c5a14
C# components used in the IDE. Depending on your project type and settings, a different version of the compiler may be used.
Common Azure Tools 1.10
Provides common services for use by Azure Mobile Services and Microsoft Azure Tools.
Entity Framework Core Power Tools 2.5
Adds useful design-time EF Core DbContext features to the Visual Studio Solution Explorer context menu.
Microsoft JVM Debugger 1.0
Provides support for connecting the Visual Studio debugger to JDWP compatible Java Virtual Machines
NuGet Package Manager 6.4.0
NuGet Package Manager in Visual Studio. For more information about NuGet, visit https://docs.nuget.org/
NUKE Support 0.1.0
Task Runner integration for execution of targets and code snippets for authoring
Razor (ASP.NET Core) 17.0.0.2246202+61cc048d36a3fc9246d2f04625988b19a18ab8f0
Provides languages services for ASP.NET Core Razor.
SQL Server Data Tools 17.0.62207.28050
Microsoft SQL Server Data Tools
Switch Startup Project 4.2.76
Provides a toolbar dropdown box to switch between startup projects.
Test Adapter for Boost.Test 1.0
Enables Visual Studio's testing tools with unit tests written for Boost.Test. The use terms and Third Party Notices are available in the extension installation directory.
Test Adapter for Google Test 1.0
Enables Visual Studio's testing tools with unit tests written for Google Test. The use terms and Third Party Notices are available in the extension installation directory.
TypeScript Tools 17.0.10921.2001
TypeScript Tools for Microsoft Visual Studio
Visual Basic Tools 4.4.0-6.22580.4+d7a61210a88b584ca0827585ec6e871c6b1c5a14
Visual Basic components used in the IDE. Depending on your project type and settings, a different version of the compiler may be used.
Visual F# Tools 17.4.0-beta.22512.4+525d5109e389341bb90b144c24e2ad1ceec91e7b
Microsoft Visual F# Tools
Visual Studio IntelliCode 2.2
AI-assisted development for Visual Studio.
Visual Studio Tools for Unity 17.4.3.0
Visual Studio Tools for Unity
VsChromium 0.9.39
Collection of tools to help contributing code to the Chromium project.
VSColorOutput64 2022.2
Color output for build and debug windows - https://mike-ward.net/vscoloroutput
JetBrains ReSharper 2022.3.1 Build 223.0.20221218.114821 built on 2022-12-18
dotCover 2022.3.20221220.121240
dotTrace 2022.3.20221220.121254
ReSharper 2022.3.20221218.162156
dotMemory 2022.3.20221220.121254
The explanation document for this operation "enable namespace update when moving files" is here:Sync namespace and folder name.
You can find it and close it in the following operations.
Tools->Options->Projects and solutions->General->Enable namespace update when moving files
Question
How to generate UML diagrams of an existing project in Visual Studio Enterprise 2022?
Description
I'm studying a project:
https://github.com/EnLabSoftware/Repository_UnitOfWork_Example
I want to get automatically, for example, a class diagram with associations.
I only get the code map.
Example
Pictures
Installed products.
Microsoft Visual Studio Enterprise 2022 (2)
Version 17.1.6
VisualStudio.17.Release/17.1.6+32421.90
Microsoft .NET Framework
Version 4.8.04084
Installed version: Enterprise
Visual C++ 2022 00482-10000-00261-AA827
Microsoft Visual C++ 2022
Charting and Architecture Analysis Tools 00482-10000-00261-AA827
Charting and Architecture Analysis Tools (Microsoft)
ADL Tools Service Provider 1.0
This package contains services used by Data Lake tools
ASA Service Provider 1.0
ASP.NET and Web Tools 2019 17.1.363.30963
ASP.NET and Web Tools 2019
ASP.NET Web Frameworks and Tools 2019 17.1.363.30963
For more information, see the website https://www.asp.net/
Azure Data Lake Tools for Visual Studio 2.6.5000.0
Microsoft Azure Data Lake Tools for Visual Studio
Azure Functions and Web Jobs Tools 17.1.363.30963
Azure Functions and Web Jobs Tools
Azure Stream Analytics Tools for Visual Studio 2.6.5000.0
Microsoft Azure Stream Analytics Tools for Visual Studio
Common Azure Tools 1.10
Provides common services for use by Azure Mobile Services and Microsoft Azure Tools.
Cookiecutter 17.0.21344.1
Provides tools for searching, instantiating, and configuring templates in cookiecutter format.
Microsoft Azure Hive Query Language Service 2.6.5000.0
Language service for Hive query
Microsoft Azure Stream Analytics Language Service 2.6.5000.0
Language service for Azure Stream Analytics
Microsoft Azure Tools for Visual Studio 2.9
Support for Azure Cloud Services projects
Microsoft JVM Debugger 1.0
Provides support for connecting the Visual Studio debugger to JDWP compatible Java Virtual Machines
Microsoft Library Manager 2.1.161+abc97ecc7d.RR
Easy installation of client libraries for any web project
Microsoft MI-Based Debugger 1.0
Provides support for connecting Visual Studio to MI compatible debuggers
Python with Pylance 17.0.21344.1
Provides IntelliSense, projects, templates, debugging, interactive windows and other auxiliary functions for Python developers.
Python — Django support 17.0.21344.1
Provides templates and integration for the Django web platform.
Python — profiling support 17.0.21344.1
Profiling support for Python projects.
Razor (ASP.NET Core) 17.0.0.2206201+62a2c1d6162f828801565a7ca26d9d48b81 0a05b
Provides language services for ASP.NET Core Razor.
SQL Server Data Tools 17.0.62203.25080
Microsoft SQL Server Data Tools
ToolWindowHostedEditor 1.0
Hosting json editor into a tool window
Visual Studio IntelliCode 2.2
Development using artificial intelligence for Visual Studio.
Visual F# Tools 17.1.0-beta.21610.4+07b5673e4f2fa7630e78abe37f16b372353a7 242
Microsoft Visual F# Tools
NuGet Package Manager 6.1.0
NuGet Package Manager in Visual Studio. For more information about NuGet, see
the website https://docs.nuget.org/
Tools C# 4.1.0-5.22165.10+e555772db77ca828b02b4bd547c318387f11d01 f
C# components used in the integrated development environment. Depending on the type and settings of the project, different versions of the compiler can be used.
Visual Basic Tools 4.1.0-5.22165.10+e555772db77ca828b02b4bd547c318387f11d01 f
Visual Basic components used in the integrated development environment.
Depending on the type and settings of the project, different versions of the compiler can be used.
Microsoft Visual C++ 1.0 Wizards Microsoft Visual C++ Wizards
Debugging .NET Core with WSL 1.0
Debugging .NET Core with WSL
Microsoft Visual Studio 1.0 VC Package
Microsoft Visual Studio VC Package
Visual Studio Code 1.0 Debugging Adapter Placement Package
Interaction level for hosting Visual Studio Code debugging adapters in Visual Studio
Snapshot Debugging Extension 1.0
Details about the Visual Studio Snapshot Debugging Extension
Tool Extensions for Visual Studio 1.0 containers
Viewing, diagnosing and managing containers in Visual Studio.
Microsoft Visual Studio Tools for Containers 1.2
Application Development, Launch and Validation ASP.NET Core in the target environment. By pressing the F5 key, you can send the application directly to the container with debugging, and the CTRL+F5 keys allow you to change and update the application without reassembling the container.
TypeScript Tools 17.0.1229.2001
TypeScript Tools for Microsoft Visual Studio
Visual Studio Tools for Containers 1.0
Visual Studio Tools for Containers
Azure Application Service Tools, version 3.0.0 17.1.363.30963
Azure Application Service Tools, version 3.0.0
This is when creating a new C# WinForms project. I have tried uninstalling, reinstalling, and seemingly everything I could find online.
Other frameworks are installed and are selected appropriately in the Visual Studio installer:
Installed targeting packs
Selected SDK's in Visual Studio Installer
Selected Frameworks in the Desktop Development section of Visual Studio Installer
I think this is because you've created a 'SDK' type project. You need to use the Windows Forms App (.NET Framework) project to target the older frameworks.
I've search the web and found questions from 3-9 years ago.
My problem is that I can't find anywhere the .NET standard or Windows Console Application or Windows Desktop Application or class Library for C#.
When I had Visual Studio 2015 - it was there by default.
Today I have Visual Studio 2017 and window 10 and I can't get my things together.
Are they canceled?
What is the other option?
When I look at my New project library -> Online -> Visual C#
There are many different applications but non of them seems to come from Microsoft.
Meanwhile I've got a .NET Core API Solution template but it has a lot of errors.
Please help
visual studio c# extensions missing
Just like Joe said, you should use Visual Studio installer to install the modules you need. Visual Studio 2017 use the a new way to install Visual Studio! In the newest version, MS have made it easier for you to select and install just the features you need. MS have also reduced the minimum footprint of Visual Studio so that it installs more quickly and with less system impact than ever before.
After the installer is installed, you can use it to customize your installation by selecting the feature sets—or workloads—that you want.
For the .NET core API project, you need install module .NET Core cross-platform development.
Check the document Install Visual Studio 2017 for some more details.
Hope this helps.
I have a dacpac on my local machine I am trying to deploy it using code and it fails. with the following error
I code I am using to deploy the dacpac is as follows
private static void CreateDatabase()
{
using (var dacPackage = DacPackage.Load(DacPacFullPath))
{
var dacServices = new DacServices(Shared.Environment.Settings.RadanDbNameOrConnectionString());
dacServices.Deploy(dacPackage, DatabaseName, true);
}
}
The things I have checked
DacPacFullPath is correct
dacServices is correct i.e, the connectionstring is formed correctly.
Used the credentials used in the connection string to login onto SQL and it
works fine
I manually deployed the dacpac in management studio and it works
I am using SQL Server 2016 and Visual Studio 2015 Detailed info as follows
SQL Server
Microsoft SQL Server Management Studio 13.0.16106.4
Microsoft Analysis Services Client Tools 13.0.1700.441
Microsoft Data Access Components (MDAC) 10.0.16299.15
Microsoft MSXML 3.0 4.0 6.0
Microsoft Internet Explorer 9.11.16299.0
Microsoft .NET Framework 4.0.30319.42000
Operating System 6.3.16299
Visual Studio 2015
Microsoft Visual Studio Professional 2015
Version 14.0.25431.01 Update 3
Microsoft .NET Framework
Version 4.7.02556
Installed Version: Professional
LightSwitch for Visual Studio 2015 00322-40000-00000-AA922
Microsoft LightSwitch for Visual Studio 2015
Visual Basic 2015 00322-40000-00000-AA922
Microsoft Visual Basic 2015
Visual C# 2015 00322-40000-00000-AA922
Microsoft Visual C# 2015
Visual C++ 2015 00322-40000-00000-AA922
Microsoft Visual C++ 2015
Application Insights Tools for Visual Studio Package 7.0.20622.1
Application Insights Tools for Visual Studio
ASP.NET and Web Tools 2015.1 (Beta8) 14.1.11107.0
ASP.NET and Web Tools 2015.1 (Beta8)
ASP.NET Web Frameworks and Tools 2012.2 4.1.41102.0
For additional information, visit http://go.microsoft.com/fwlink/?LinkID=309563
ASP.NET Web Frameworks and Tools 2013 5.2.40314.0
For additional information, visit http://www.asp.net/
Common Azure Tools 1.8
Provides common services for use by Azure Mobile Services and Microsoft Azure Tools.
JavaScript Language Service 2.0
JavaScript Language Service
JavaScript Project System 2.0
JavaScript Project System
JetBrains ReSharper Ultimate 2016.2.2 Build 106.0.20160913.91321
JetBrains ReSharper Ultimate package for Microsoft Visual Studio. For more information about ReSharper Ultimate, visit http://www.jetbrains.com/resharper. Copyright © 2018 JetBrains, Inc.
Microsoft Azure Mobile Services Tools 1.4
Microsoft Azure Mobile Services Tools
NuGet Package Manager 3.4.4
NuGet Package Manager in Visual Studio. For more information about NuGet, visit http://docs.nuget.org/.
PreEmptive Analytics Visualizer 1.2
Microsoft Visual Studio extension to visualize aggregated summaries from the PreEmptive Analytics product.
SQL Server Data Tools 14.0.60519.0
Microsoft SQL Server Data Tools
TypeScript 1.8.36.0
TypeScript tools for Visual Studio
Any help is greatly appreciated.