diff --git a/SourceGenerator/SourceGenerator.csproj b/SourceGenerator/SourceGenerator.csproj index 74ade31a6..355ca46da 100644 --- a/SourceGenerator/SourceGenerator.csproj +++ b/SourceGenerator/SourceGenerator.csproj @@ -6,6 +6,8 @@ preview Microsoft.Azure.Functions.Worker.Sdk Microsoft.Azure.Functions.Worker.Sdk + true + ..\key.snk diff --git a/key.snk b/key.snk new file mode 100644 index 000000000..48b0a3a05 Binary files /dev/null and b/key.snk differ diff --git a/samples/FunctionApp/FunctionApp.csproj b/samples/FunctionApp/FunctionApp.csproj index 458a2e4c0..ddda71a33 100644 --- a/samples/FunctionApp/FunctionApp.csproj +++ b/samples/FunctionApp/FunctionApp.csproj @@ -5,10 +5,13 @@ v3 Exe <_FunctionsSkipCleanOutput>true + true + ..\..\key.snk DEBUG;TRACE + diff --git a/src/DotNetWorker/DotNetWorker.csproj b/src/DotNetWorker/DotNetWorker.csproj index 0cad1620c..847440e93 100644 --- a/src/DotNetWorker/DotNetWorker.csproj +++ b/src/DotNetWorker/DotNetWorker.csproj @@ -5,6 +5,8 @@ net5.0 Microsoft.Azure.Functions.Worker Microsoft.Azure.Functions.Worker + true + ..\..\key.snk @@ -22,5 +24,4 @@ - \ No newline at end of file diff --git a/src/DotNetWorker/Properties/AssemblyInfo.cs b/src/DotNetWorker/Properties/AssemblyInfo.cs index 10662d181..03f01e4db 100644 --- a/src/DotNetWorker/Properties/AssemblyInfo.cs +++ b/src/DotNetWorker/Properties/AssemblyInfo.cs @@ -1,4 +1,4 @@ using System.Runtime.CompilerServices; -[assembly: InternalsVisibleTo("Microsoft.Azure.Functions.WorkerTests")] -[assembly: InternalsVisibleTo("DynamicProxyGenAssembly2")] +[assembly: InternalsVisibleTo("Microsoft.Azure.Functions.WorkerTests, PublicKey=00240000048000009400000006020000002400005253413100040000010001005148be37ac1d9f58bd40a2e472c9d380d635b6048278f7d47480b08c928858f0f7fe17a6e4ce98da0e7a7f0b8c308aecd9e9b02d7e9680a5b5b75ac7773cec096fbbc64aebd429e77cb5f89a569a79b28e9c76426783f624b6b70327eb37341eb498a2c3918af97c4860db6cdca4732787150841e395a29cfacb959c1fd971c1")] +[assembly: InternalsVisibleTo("DynamicProxyGenAssembly2, PublicKey=00240000048000009400000006020000002400005253413100040000010001005148be37ac1d9f58bd40a2e472c9d380d635b6048278f7d47480b08c928858f0f7fe17a6e4ce98da0e7a7f0b8c308aecd9e9b02d7e9680a5b5b75ac7773cec096fbbc64aebd429e77cb5f89a569a79b28e9c76426783f624b6b70327eb37341eb498a2c3918af97c4860db6cdca4732787150841e395a29cfacb959c1fd971c1")] diff --git a/test/DotNetWorkerTests/DotNetWorkerTests.csproj b/test/DotNetWorkerTests/DotNetWorkerTests.csproj index eb950982d..2da660999 100644 --- a/test/DotNetWorkerTests/DotNetWorkerTests.csproj +++ b/test/DotNetWorkerTests/DotNetWorkerTests.csproj @@ -5,6 +5,8 @@ false Microsoft.Azure.Functions.WorkerTests Microsoft.Azure.Functions.WorkerTests + true + ..\..\key.snk