You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Could not load file or assembly 'System.Security.Cryptography.Algorithms' on net46 #45
When trying to build in Dev15 using the Microsoft.DotNet.Core.Sdk nuget package, we get the following error:
The "GenerateDepsFile" task failed unexpectedly.
System.IO.FileNotFoundException: Could not load file or assembly 'System.Security.Cryptography.Algorithms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' or one of its dependencies. The system cannot find the file specified.
File name: 'System.Security.Cryptography.Algorithms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a'
at Microsoft.DotNet.Core.Build.Tasks.DependencyContextBuilder.GenerateRuntimeSignature(IEnumerable`1 runtimeExports)
at Microsoft.DotNet.Core.Build.Tasks.DependencyContextBuilder.Build(String projectName, String projectVersion, CompilationOptions compilerOptions, LockFile lockFile, NuGetFramework framework, String runtime)
at Microsoft.DotNet.Core.Build.Tasks.GenerateDepsFile.Execute()
This is because this assembly is not deployed with the .NET Framework v4.6. Instead, apps are expected to deploy this assembly when they target net46.
There are other CoreFX libraries that have the same situation (ex. System.IO.FileSystem), but those assemblies appear to be deployed with MSBuild in Dev15. However, System.Security.Cryptography.Algorithms is not.
To workaround this error for now, we will package System.Security.Cryptography.Algorithms in our nuget package, so it can be loaded on net46.
Activity
"Publish" our tasks assembly into platform-specific folders inside ou…
Merge pull request dotnet#45 from aspnet/ap/itemtemplates
ohos-install: re-anchor the workload bundle digest (kit dotnet#45)
ohos-install: re-anchor the workload bundle digest (kit dotnet#46)