Visual-Studio | Discord Rich Presence extension for both Visual Studio | Chat library
kandi X-RAY | Visual-Studio Summary
kandi X-RAY | Visual-Studio Summary
This extension enables on Discord Rich Presence for Visual Studio 2017 and 2019. As you're developing, this extension will automatically update your status on Discord to tell the world what you're coding.
Support
Quality
Security
License
Reuse
Top functions reviewed by kandi - BETA
Currently covering the most popular Java, JavaScript and Python libraries. See a Sample of Visual-Studio
Visual-Studio Key Features
Visual-Studio Examples and Code Snippets
Community Discussions
Trending Discussions on Visual-Studio
QUESTION
I'm using Visual Studio Code's terminal (on a Windows 11 device) and can't run commands like java
, flutter
etc., be it VS Code's Powershell terminal or VS Code's Command Prompt terminal.
When I try to run java
by typing java
in the VS Code Powershell terminal, it displays:
ANSWER
Answered 2022-Apr-03 at 16:35make sure to download java extension ,
- go to vs code
- click "extensions" button on left side
- after that, on search bar appeared on top left
- search "java" and click the first result (will be extension pack for java)
- and click "install" to download java extension and follow the instructions given below in "details" option
then after installing, you have to install some complier stuff from google
if you face problem, click this link below
this will give you idea
hope it helps you
for flutter in vs code
click "extensions" button on left side
after that, on search bar appeared on top left
search "dart" and click the first result (dart)
and click "install" to download dart extension and follow the instructions given below in "details" option
then after installing, you have to install some complier stuff from google
- if you face problem, click this link below
- https://youtu.be/5izFFbdHnWY
- this will help you -thank you
QUESTION
Some time ago, a Visual Studio update added a hot reload feature. It be handy, but it also can be annoying especially when you're testing and you don't want to reset the current state of the front end. Visual Studio injects the script whether you're debugging or not.
How can hot reload be disabled? My Visual Studio version is 16.10.3
...ANSWER
Answered 2021-Aug-27 at 14:23You can change this feature here:
Tools > Options > Projects and Solutions > ASP.NET Core > Auto build and refresh option
Options to automatically build and refresh the browser if the web server is running when changes are made to the project.
Your options in this dropdown are the following:
- None
- Auto build on browser request (IIS only)
- Refresh browser after build
- Auto build and refresh browser after saving changes
Also note my version of VS is 16.11.1
.
QUESTION
I've added a new .Net 6.0 project to my solution in VS2022. Installed the EntityFramework 6.4.4. with install-package entityframework
and now try to add a ADO.Net Entity Framework Model to the project. I get an error:
The project's target framework does not contain Entity Framework runtime assemblies. Please review the target framework information on the project's property page.
I've tried adding several other EF packages (which should not be necessary according to the documentation here: https://docs.microsoft.com/en-us/ef/ef6/fundamentals/install). I thought the problem was with my installation but I created a .Net 6.0 console application containing the problem and sent it to a colleague and he got the same message.
Also found this topic here: Adding Entity Framework Model on Visual Studio 2022 but there's no answer there.
Steps to reproduce:
- Create a .Net 6.0 Console application.
- Install the EF6 package using
install-package entityframework
from the package manager console window. - Right-click solution and choose 'Add' => 'Add item'.
- In the left pane click 'Data'.
- Choose 'ADO.Net Entity Framework Model.
- Click 'Add'.
The error appears:
...ANSWER
Answered 2022-Jan-05 at 16:33The EF 6 tooling onl works on a .NET Framework project, you must add one to your slution and then copy or link to the generated code. In addition, EDMX files in .NET Core projects are not supported, but there are workarounds
QUESTION
I checked this question and many other posts to help me resolve my issue, but nothing worked.
I trying to open an existing Java Project from Eclipse in vscode. The project was opened successfully in Eclipse 2021-06 and I fixed the referenced libraries by selecting the JAR libraries under lib/
folder and right-click - configure build batch - add select add to build path. Then the file .classpath
was updated automatically. Then I had to download JDK 11 (needed for vscode) and JDK 1.8 needed for the Java project. I managed to work with eclipse to set the JDK correctly and all worked fine. I was able to compile the project, export the result JAR and deploy and all worked well.
I am having trouble to open this project in vscode using Open Java Project
option. I am facing issues adding referenced libraries this Java project as it is a managed project (since it was created in Eclipse). When I try to add the libraries using vscode UI, I am getting mixed results and sometimes it is not working and the build fails. I was surprised as in some instances, things just work, and then they don't.
I tried to update .classpath
file in vscode and still same issues. When I try to add the libraries from Referenced Libraries (Read Only)
under JAVA PROJECTS
tree in vscode by clicking +
, it has no effect. This step will modify the file settings.json
under .vscode
folder by adding the relevant values to the property "java.project.referencedLibraries"
.
I am confused about how to configure the referenced libraries for Java projects in vscode. Following is a summary of questions:
- How to add a library using a relative path to a Java Project based on the project root folder?
- What is the difference between adding a library using the
.classpath
file and by modifyingsettings.json
file? Which one will win? - How to add a folder with all JAR files to be as the referenced library to the Java Project? This is to avoid adding one file at a time.
- Why the
.classpath
and.project
files are not showing in vscode explorer view? It will only show when you open the file in vscode from the Windows File Explorer. - I found command
Configure Classpath
but it is read-only, which I think it is the same as the.classpath
file. Is there a way to change it from vscode UI? - When I remove
.classpath
file or when I removed theclasspathentry
lines from the.classpath
file, the node 'Referenced Libraries (Read Only)' underJAVA PROJECTS
in vscode view was removed. Why?
See the snapshots below for more details.
I appreciate your help.
...ANSWER
Answered 2021-Sep-17 at 08:45Basically speaking, java extension looks for jars from Referenced Libraries.
Here're my answers to your questions:
Right click the jar and choose
copy relative path
then add it to settings, click the refresh button then the added jar should be displayed under the option Referenced Libraries:The CLASSPATH variable is one way to tell applications, including the JDK tools, where to look for user classes. When it comes to add jars, settings
java.project.referencedLibraries
wins.No way to select jar folders but you can use keyboard shortcuts to select all jars then add them.
There's a setting called
"java.configuration.checkProjectSettingsExclusions"
, and it's true by default, so.project
and.classpath
won't be shown in VS Code.The command Java: Configure Classpath works on my machine, which can customize current project.
My guess is when you open a new project, vscode popped up a window and ask you if trust it, and you chose Not, then project is read-only. Trusting the workspace then try the command Java: Configure Classpath again, it should be writeable.
QUESTION
Is there an Auto Save feature in Visual Studio 2022? The article here says it is.
But for me I dont see it. Is it removed in Preview? Or I am missing something?
...ANSWER
Answered 2022-Mar-11 at 03:55had the same issue found solution, download this extension: AutoSave extension and install it. you can find the setting under Tools -> Options -> Auto Save File
Here's a picture
QUESTION
I have an ASP.NET Core 3.1 MVC web application, which I upgraded to .NET 6 following these instructions.
All of my unit tests are passing.
When I run the application, some queries are working and some are failing with this error:
An error occurred while writing to logger(s). (The ConnectionString property has not been initialized.)'
I took one of the failing queries and put it in a Sandbox Unit Test and ran it. It runs fine. So there is something wrong with the dependency injection of the DbContext
.
I tried deleting all obj
and bin
folders, restarting Visual Studio, restarting my computer, none of which helped.
Here is how I am registering my DbContext
:
ANSWER
Answered 2022-Mar-10 at 01:05The details are all there in the stack trace. The trick is knowing how to read it.
First the exception Message
QUESTION
Every time I go to build any project in Visual Studio 2022, all I get in the buil output is:
...ANSWER
Answered 2022-Mar-02 at 00:29The problem turned out to be caused by Symantec Endpoint Protection. It's an antivirus software that seems to kill processes it doesn't trust, by injecting its own DLL and causing them to fault.
So whenever msbuild.exe was running, Symantec would kill it. To resolve it, our IT team needed to add a policy to allow msbuild.exe.
Strange VS didn't detect MSBuild.exe had died, it just say there indefinitely.
I found this in the Windows Event Viewer under Application Events:
QUESTION
In my Java application I am using Azure Data Lake Storage Gen2 for storage (ABFS). In the class that handles the requests to the filesystem, I get a file path as an input and then use some regex to extract Azure connection info from it.
The Azure Data Lake Storage Gen2 URI is in the following format:
...ANSWER
Answered 2022-Feb-23 at 17:03Solution 1
You can use a single pattern for this, but you will need to check which group matched in the code to determine where the necessary details are captured.
The regex will look like
QUESTION
I am trying to change the target framework for my SSIS 2019 script task to .NET 5.0 from .NET 4.7 by installing other frameworks. My changes are reverted back to .NET 4.7 once I save and close out from the script task. Could you please guide me on how to make my changes stick or the ideal way to switch the target framework to .NET 5.0
...ANSWER
Answered 2022-Feb-17 at 19:25Since SSIS 2017, you are not able to change the script task/component's target framework since it is forced by the SSIS TargetServerVersion
property. As mentioned in the following post, this is by design: Script Task Target Framework - Cannot Change or Save.
Later, In the SSIS extension version 3.2 preview, they mentioned that:
Upgraded .NET framework version to 4.7 for script task/component when the target server version is SQL Server 2019
This means that using SQL Server 2019 as TargetServerVersion
will force .NET framework 4.7 as target framework for all script tasks/components.
You can check more information about SQL Server and required .NET framework versions in the following article:
QUESTION
I'm trying to create a .NET Core 6.0 binary as a standalone, with all dependencies packaged in one .exe
file.
The trouble I am having is that whilst the binary compiles ok it is reliant on the DLLs placed in the Release/Debug folder.
I have tried compiling from the command line with
...ANSWER
Answered 2022-Feb-16 at 21:24I'd suggest looking at https://docs.microsoft.com/en-us/dotnet/core/deploying/single-file which should hopefully be up to date. I believe the key bit is true
in the .csproj.
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install Visual-Studio
Support
Reuse Trending Solutions
Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items
Find more librariesStay Updated
Subscribe to our newsletter for trending solutions and developer bootcamps
Share this Page