J
John P
Can someone give me a little help with creating multi-file assemblies?
I am trying the simple example from richter's book and I can't seem to
get my exe to recognize a class defined in a .netmodule file.
I created 2 .cs files. One called ruts.cs that contains a class Rut, and
another .cs file, futs.cs, which contains a class Fut. Both belong to
the same Namespace. I built the rut.cs into a .netmodule as follows:
csc /t:module ruts.cs
This generated a ruts.netmodule file.
I then created a library module using futs.cs and the ruts.netmodule.
csc /t:library /out:MyAssembly.dll /addmodule:ruts.netmodule futs.cs
This created MyAssembly.dll.
Within the VS-IDE I created an app, Test and added the reference to
MyAssembly.dll and added the using MyNamespace;
In the Test I can access and use the class Fut but the class Rut is not
seen and generates an error.
So, what am I missing?
Thank you for your help with this problem
johnp
I am trying the simple example from richter's book and I can't seem to
get my exe to recognize a class defined in a .netmodule file.
I created 2 .cs files. One called ruts.cs that contains a class Rut, and
another .cs file, futs.cs, which contains a class Fut. Both belong to
the same Namespace. I built the rut.cs into a .netmodule as follows:
csc /t:module ruts.cs
This generated a ruts.netmodule file.
I then created a library module using futs.cs and the ruts.netmodule.
csc /t:library /out:MyAssembly.dll /addmodule:ruts.netmodule futs.cs
This created MyAssembly.dll.
Within the VS-IDE I created an app, Test and added the reference to
MyAssembly.dll and added the using MyNamespace;
In the Test I can access and use the class Fut but the class Rut is not
seen and generates an error.
So, what am I missing?
Thank you for your help with this problem
johnp