Include .CS files in SharePoint solution package?

380 views Asked by At

I have a class file, where I store common methods used in several webparts. I'm asking now, how to include this file in .wsp package?

2

There are 2 answers

3
msounthar On BEST ANSWER

Class files will not be part of the solution directly, all the code files will be compiled and will be part of the project assembly.This dll will be part of the solution package and it will be placed in the GAC when the solution is deployed.

So there is no need for you to do anything additional.

0
Greg On

Maybe you should create .dll which contains needed code and deploy it in seperate .wsp package.