Skip to content

Commit 09efd80

Browse files
committed
Match whole word for Microsoft.AspNetCore.App
1 parent 3b45c1e commit 09efd80

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Dotnet.Script.DependencyModel/Context/ScriptDependencyContextReader.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@ public ScriptDependencyContext ReadDependencyContext(string pathToAssetsFile)
7474
var netcoreAppRuntimeAssemblies = Directory.GetFiles(netcoreAppRuntimeAssemblyLocation, "*.dll").Where(IsAssembly).ToArray();
7575
var netCoreAppDependency = new ScriptDependency("Microsoft.NETCore.App", ScriptEnvironment.Default.NetCoreVersion.Version, netcoreAppRuntimeAssemblies, Array.Empty<string>(), Array.Empty<string>(), Array.Empty<string>());
7676
scriptDependencies.Add(netCoreAppDependency);
77-
if (File.ReadAllText(pathToAssetsFile).Contains("Microsoft.AspNetCore.App"))
77+
if (File.ReadAllText(pathToAssetsFile).Contains("\"Microsoft.AspNetCore.App\""))
7878
{
7979
var aspNetCoreRuntimeInfo = GetAspNetCoreRuntimeInfo(netcoreAppRuntimeAssemblyLocation);
8080
var aspNetCoreAppRuntimeAssemblies = Directory.GetFiles(aspNetCoreRuntimeInfo.aspNetCoreRuntimeAssemblyLocation, "*.dll").Where(IsAssembly).ToArray();

0 commit comments

Comments
 (0)