Skip to content

Commit 6e21925

Browse files
committed
Fix .NET 3.5 code dom tests failure due to ArgumentNullException.
1 parent c56cc66 commit 6e21925

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

src/MsgPack/Serialization/DependentAssemblyManager.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ public static DependentAssemblyManager Default
4848

4949
#else
5050

51-
private static volatile DependentAssemblyManager _default = new NullDependentAssemblyManager();
51+
private static volatile DependentAssemblyManager _default = new NullDependentAssemblyManager();
5252

5353
public static DependentAssemblyManager Default
5454
{

test/MsgPack.UnitTest.Net35/Serialization/CodeDomCodeGeneration.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ internal static class CodeDomCodeGeneration
3939
public static void Compile( string code, bool isDebug, out Assembly compiledAssembly, out IList<string> errors, out IList<string> warnings )
4040
{
4141
var assemblyName = "CodeGenerationAssembly" + Interlocked.Increment( ref _suffix );
42-
var assemblyPath = Path.Combine( SerializerDebugging.DumpDirectory, assemblyName + ".dll" );
42+
var assemblyPath = Path.Combine( SerializerDebugging.DumpDirectory ?? Path.GetTempPath(), assemblyName + ".dll" );
4343

4444
using ( var provider = CodeDomProvider.CreateProvider( "C#" ) )
4545
{

0 commit comments

Comments
 (0)