Prevent .NET from writing to C:\Windows\Temp

后端 未结 5 776
伪装坚强ぢ
伪装坚强ぢ 2021-01-19 01:28

I\'ve got a C# application that I\'m trying to push out to a distributed network. The application works fine locally (as always), but when I push it out to the network, it

5条回答
  •  既然无缘
    2021-01-19 01:53

    The problem you have here is that you are using some function which auto-generates temporary code. It needs a location to do this. So yes, while you can prevent it from writing code to that specific location, the only way to prevent it from generating code (that must be stored somewhere) is to not use a function that generates temporary classes.

提交回复
热议问题