diff --git a/Directory.Build.props b/Directory.Build.props
index b9be670..aa8dbac 100644
--- a/Directory.Build.props
+++ b/Directory.Build.props
@@ -8,7 +8,7 @@
- Microsoft ASP.NET Core
+ Microsoft ASP.NET Core VSCode
https://github.com/aspnet/Razor.VSCode
git
$(MSBuildThisFileDirectory)
diff --git a/NuGetPackageVerifier.json b/NuGetPackageVerifier.json
index a120c1b..1574915 100644
--- a/NuGetPackageVerifier.json
+++ b/NuGetPackageVerifier.json
@@ -4,6 +4,16 @@
// Don't run any rules for packages the ADX team creates but doesn't ship.
],
"packages": {
+ "Microsoft.AspNetCore.Razor.LanguageServer": {
+ "Exclusions": {
+ "SIGN_STRONGNAME": {
+ "lib/net461/Microsoft.AspNetCore.Razor.LanguageServer.exe": "Underlying omnisharp server is not strong-named."
+ },
+ "WRONG_PUBLICKEYTOKEN": {
+ "lib/net461/Microsoft.AspNetCore.Razor.LanguageServer.exe": "Underlying omnisharp server is not strong-named."
+ }
+ }
+ }
}
},
"Default": { // Rules to run for packages not listed in any other set.
@@ -11,4 +21,4 @@
"DefaultCompositeRule"
]
}
-}
+}
\ No newline at end of file
diff --git a/build/dependencies.props b/build/dependencies.props
index a7bdc05..92566d7 100644
--- a/build/dependencies.props
+++ b/build/dependencies.props
@@ -1,10 +1,8 @@
-
- $(MSBuildAllProjects);$(MSBuildThisFileFullPath)
-
+
+
2.1.1
- 2.2.0-preview1-17090
diff --git a/build/repo.props b/build/repo.props
index 8657181..89e67c1 100644
--- a/build/repo.props
+++ b/build/repo.props
@@ -5,6 +5,9 @@
+ true
+ $(RepositoryRoot)modules\Razor\build\dependencies.props
+
Internal.AspNetCore.Universe.Lineup
https://dotnet.myget.org/F/aspnetcore-dev/api/v3/index.json
diff --git a/client/src/RazorLanguageServerClient.ts b/client/src/RazorLanguageServerClient.ts
index 8d7e34a..890dd8a 100644
--- a/client/src/RazorLanguageServerClient.ts
+++ b/client/src/RazorLanguageServerClient.ts
@@ -30,16 +30,16 @@ export class RazorLanguageServerClient implements vscode.Disposable {
outputChannel: options.outputChannel
};
- // TODO: Resolve dotnet path or self-host server executable
- let args = [options.serverDllPath, '-lsp'];
+ const args = ['-lsp'];
+ let args = ['-lsp'];
if (options.debug) {
args[2] = "--debug";
}
this._serverOptions = {
- run: { command: 'dotnet', args: args },
- debug: { command: 'dotnet', args: args }
+ run: { command: options.serverDllPath, args },
+ debug: { command: options.serverDllPath, args },
};
this._client = new LanguageClient('razorLanguageServer', 'Razor Language Server', this._serverOptions, this._clientOptions);
diff --git a/modules/Directory.Build.props b/modules/Directory.Build.props
new file mode 100644
index 0000000..8c119d5
--- /dev/null
+++ b/modules/Directory.Build.props
@@ -0,0 +1,2 @@
+
+
diff --git a/src/Microsoft.AspNetCore.Razor.LanguageServer.StrongNamed/Microsoft.AspNetCore.Razor.LanguageServer.StrongNamed.csproj b/src/Microsoft.AspNetCore.Razor.LanguageServer.StrongNamed/Microsoft.AspNetCore.Razor.LanguageServer.StrongNamed.csproj
index 5d4650e..ce5107b 100644
--- a/src/Microsoft.AspNetCore.Razor.LanguageServer.StrongNamed/Microsoft.AspNetCore.Razor.LanguageServer.StrongNamed.csproj
+++ b/src/Microsoft.AspNetCore.Razor.LanguageServer.StrongNamed/Microsoft.AspNetCore.Razor.LanguageServer.StrongNamed.csproj
@@ -1,7 +1,7 @@
- netstandard2.0
+ net461
Temporary assembly until the csharp language server is strong name signed.
false
diff --git a/src/Microsoft.AspNetCore.Razor.LanguageServer/Microsoft.AspNetCore.Razor.LanguageServer.csproj b/src/Microsoft.AspNetCore.Razor.LanguageServer/Microsoft.AspNetCore.Razor.LanguageServer.csproj
index 0c91ed6..12de2a8 100644
--- a/src/Microsoft.AspNetCore.Razor.LanguageServer/Microsoft.AspNetCore.Razor.LanguageServer.csproj
+++ b/src/Microsoft.AspNetCore.Razor.LanguageServer/Microsoft.AspNetCore.Razor.LanguageServer.csproj
@@ -2,7 +2,7 @@
Exe
- netcoreapp2.0
+ net461
Razor is a markup syntax for adding server-side logic to web pages. This package contains a Razor language server.
false
false
diff --git a/src/Microsoft.AspNetCore.Razor.LanguageServer/RazorCompletionEndpoint.cs b/src/Microsoft.AspNetCore.Razor.LanguageServer/RazorCompletionEndpoint.cs
index 9bfed7e..34a52e3 100644
--- a/src/Microsoft.AspNetCore.Razor.LanguageServer/RazorCompletionEndpoint.cs
+++ b/src/Microsoft.AspNetCore.Razor.LanguageServer/RazorCompletionEndpoint.cs
@@ -135,7 +135,7 @@ namespace Microsoft.AspNetCore.Razor.LanguageServer
var line = lineBuilder.ToString();
var trimmedLine = line.Trim();
- if (!trimmedLine.StartsWith('@'))
+ if (!trimmedLine.StartsWith("@"))
{
return false;
}