Freedoms Gate
Freedoms Gate

Reputation: 21

C# - (Unity .NET project) How to include a reference script but should not be compiled

I am newbie and I apologize in advance. I have a Visual Basic solution with two projects inside I would like to build a dll that excludes the script called "Group" in order to be able it to enter separately as source code (free to be modified ). The problem is that if I exclude this file, the build does not run for missing references.

solution1

I tried another way by separating this script into another project and inserting it as a reference.

solution 2

After build, I thought to delete this dll and replace it with the source code. Error!!!(Unity Crash) Obviously the two dll did not reference a Group.cs file, but they refer to the DLL that contains the script called "Group." I also tried to add this file as a link ... nothing I am sure that my approach is wrong, but I'm no expert to understand the right way to go...Can someone help me? Thanks so much!!! Maurizio

Upvotes: 2

Views: 671

Answers (1)

Ludovic Feltz
Ludovic Feltz

Reputation: 11916

Put your file in a folder that begin with a dot "."

Unity will ignore this folder during the compilation

Upvotes: 1

Related Questions