Skip to content

Commit

Permalink
fix: files from obj/ being included in compilation
Browse files Browse the repository at this point in the history
  • Loading branch information
R-unic committed Jul 30, 2024
1 parent 4671773 commit 05500b5
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
4 changes: 3 additions & 1 deletion RobloxCS/FileManager.cs
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,9 @@ public static IEnumerable<string> GetSourceFiles(string sourceDirectory)
{
try
{
return Directory.GetFiles(sourceDirectory, "*.cs", SearchOption.AllDirectories).Select(Utility.FixPathSep);
return Directory.GetFiles(sourceDirectory, "*.cs", SearchOption.AllDirectories)
.Where(file => !Utility.FixPathSep(file).StartsWith(Utility.FixPathSep(sourceDirectory) + "/obj"))
.Select(Utility.FixPathSep);
}
catch (Exception e)
{
Expand Down
1 change: 1 addition & 0 deletions RobloxCS/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ This project includes the compiler and transformers.
- Full qualification of types/namespaces inside of namespaces
- Macro `new Type()` with collection types to `{}`
- Transform `typeof()` expressions into identifiers of their type
- `Utility.FixPathSep()` replacing `../` with `.`

## Will maybe be supported
- [Class finalizers (destructors)](https://learn.microsoft.com/en-us/dotnet/csharp/programming-guide/classes-and-structs/finalizers)
Expand Down

0 comments on commit 05500b5

Please sign in to comment.