Add installing with nuget using VSC to guides
This commit is contained in:
@@ -51,6 +51,7 @@ project
|
|||||||
Don't forget to change your package source if you're installing from the
|
Don't forget to change your package source if you're installing from the
|
||||||
developer feed.
|
developer feed.
|
||||||
Also make sure to check 'Enable Prereleases' if installing a dev build!
|
Also make sure to check 'Enable Prereleases' if installing a dev build!
|
||||||
|
|
||||||
5. Install the 'Discord.Net' package
|
5. Install the 'Discord.Net' package
|
||||||
|
|
||||||

|

|
||||||
@@ -59,7 +60,15 @@ Also make sure to check 'Enable Prereleases' if installing a dev build!
|
|||||||
**todo**
|
**todo**
|
||||||
|
|
||||||
## Using Visual Studio Code
|
## Using Visual Studio Code
|
||||||
**todo**
|
|
||||||
|
1. Create a new project for your bot
|
||||||
|
2. Add Discord.Net to your .csproj
|
||||||
|
|
||||||
|
[!code-xml[Sample .csproj](samples/project.csproj)]
|
||||||
|
|
||||||
|
> [!TIP]
|
||||||
|
Don't forget to add the package source to a [NuGet.Config file](#configuring-nuget-without-visual-studio) if you're installing from the
|
||||||
|
developer feed.
|
||||||
|
|
||||||
# Compiling from Source
|
# Compiling from Source
|
||||||
|
|
||||||
@@ -81,7 +90,7 @@ installation.
|
|||||||
|
|
||||||
## Installing on .NET Standard 1.1
|
## Installing on .NET Standard 1.1
|
||||||
|
|
||||||
For applications targeting a runtime corresponding with .NET Standard 1.1 or 1.2,
|
For applications targeting a runtime corresponding with .NET Standard 1.1 or 1.2,
|
||||||
the builtin WebSocket and UDP provider will not work. For applications which
|
the builtin WebSocket and UDP provider will not work. For applications which
|
||||||
utilize a WebSocket connection to Discord (WebSocket or RPC), third-party
|
utilize a WebSocket connection to Discord (WebSocket or RPC), third-party
|
||||||
provider packages will need to be installed and configured.
|
provider packages will need to be installed and configured.
|
||||||
@@ -118,4 +127,4 @@ application, where the project solution is located.
|
|||||||
Paste the following snippets into this configuration file, adding any additional
|
Paste the following snippets into this configuration file, adding any additional
|
||||||
feeds as necessary.
|
feeds as necessary.
|
||||||
|
|
||||||
[!code-xml[NuGet Configuration](samples/nuget.config)]
|
[!code-xml[NuGet Configuration](samples/nuget.config)]
|
||||||
|
|||||||
13
docs/guides/samples/project.csproj
Normal file
13
docs/guides/samples/project.csproj
Normal file
@@ -0,0 +1,13 @@
|
|||||||
|
<Project Sdk="Microsoft.NET.Sdk">
|
||||||
|
|
||||||
|
<PropertyGroup>
|
||||||
|
<OutputType>Exe</OutputType>
|
||||||
|
<TargetFramework>netcoreapp1.1</TargetFramework>
|
||||||
|
<NoWin32Manifest>true</NoWin32Manifest>
|
||||||
|
</PropertyGroup>
|
||||||
|
|
||||||
|
<ItemGroup>
|
||||||
|
<PackageReference Include="Discord.Net" Version="1.0.0-rc-00617" />
|
||||||
|
</ItemGroup>
|
||||||
|
|
||||||
|
</Project>
|
||||||
Reference in New Issue
Block a user