0

I am building a 64-bit C# .NET DLL in Visual Studio 2010. My project's post-build steps include the running of sgen.exe to generate a corresponding XmlSerializer DLL for my assembly. (I'm trying to load a CLR function into SQL Server 2012. The function does some XML serializing.)

Is there a way to generate 64-bit code with any version of sgen.exe? Or is there a particular Windows SDK that I should install? Can't seem to find a download site.

4

2 に答える 2

3

/c パラメーターで C# コンパイラ オプションを渡すことができます。

sgen.exe /c:/platform:x64

しかし、MSILにとって意味があるかどうかはわかりません

于 2012-08-01T20:44:03.980 に答える
1

sgen によってビルドされた XML シリアライゼーション アセンブリは、AnyCPU としてビルドする必要があるため、x86 では 32 ビットで、x64 では 64 ビットで実行されます。x64に強制する必要がある理由はありますか?

于 2012-08-01T20:45:03.227 に答える