# Cleaning up of the Source Tree - Removal of Redundant files

**URL:** <https://www.ruby-forum.com/t/cleaning-up-of-the-source-tree-removal-of-redundant-files/198648>\
**Category:** IronRuby\
**Created:** [November 4, 2010, 8:04pm UTC](https://www.ruby-forum.com/t/cleaning-up-of-the-source-tree-removal-of-redundant-files/198648 "2010-11-04T20:04:28Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![okkezSS](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/o/85f322/32.png) [@okkezSS](https://www.ruby-forum.com/u/okkezSS)\
**Post date:** [November 4, 2010, 8:04pm UTC](https://www.ruby-forum.com/t/cleaning-up-of-the-source-tree-removal-of-redundant-files/198648/1 "2010-11-04T20:04:28Z")

</div>

As ive already mentioned there are currently (within Runtime at least) a  
large  
number of _.cs files that are not included in any csproj files. These  
files seem  
to implement classes that already exist within System._ dll’s.

There also seem to be some _Build_csproj files. Are these maintained?  
If not,  
we should clean them up as well.

Are we able to clean up all those redundant files please. I will  
provide a  
patch during the weekend for it but currently im only looking at DLR  
(that the  
patch will only cover Runtime/\*)

Could we also introduce a policy that in future if we remove a file from  
a  
project it also gets deleted (assuming you are removing it from all  
projects).

Thanks

Alistair.

---

<div class="post-metadata">

**Author:** ![Alistair\_B](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/a/e95f7d/32.png) [@Alistair\_B](https://www.ruby-forum.com/u/Alistair_B)\
**Post date:** [November 4, 2010, 9:51pm UTC](https://www.ruby-forum.com/t/cleaning-up-of-the-source-tree-removal-of-redundant-files/198648/2 "2010-11-04T21:51:20Z")

</div>

Yes, we shouldn’t have any .cs files that are not included in any  
.csproj. I would be surprised if there were too many of them but there  
might be some. Feel free to send a patch that deletes them.

Microsoft.Scripting.Core directory includes DLR v1.0 that shipped in  
.NET 4.0 in System.Core. We still need these for Windows Phone 7 builds  
though (Silverlight3 configuration).

I removed \*.build.csproj files last week. I don’t see any now:  
[https://github.com/ironruby/ironruby/tree/master/Runtime/Microsoft.Scripting/](https://github.com/ironruby/ironruby/tree/master/Runtime/Microsoft.Scripting/)

Did you sync to the latest version of the repo?

Tomas

---

<div class="post-metadata">

**Author:** ![Alistair\_B](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/a/e95f7d/32.png) [@Alistair\_B](https://www.ruby-forum.com/u/Alistair_B)\
**Post date:** [November 5, 2010, 8:22am UTC](https://www.ruby-forum.com/t/cleaning-up-of-the-source-tree-removal-of-redundant-files/198648/3 "2010-11-05T08:22:12Z")

</div>

> g/
> 
> Did you sync to the latest version of the repo?

Ah sorry. Must have seem them a while ago and didn’t realise they had  
been  
removed 🙂

So…

Question 1: Microsoft.Scripting.Core.csproj contains a “reference”  
() to System.Linq.Expressions.txt which is not located within  
the  
repository. Im assuming this is safe to remove?

> From csproj

 Ast\System.Linq.Expressions.txt 

im sure more questions will follow…

Thanks

Alistair

---

<div class="post-metadata">

**Author:** ![Alistair\_B](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/a/e95f7d/32.png) [@Alistair\_B](https://www.ruby-forum.com/u/Alistair_B)\
**Post date:** [November 5, 2010, 10:35am UTC](https://www.ruby-forum.com/t/cleaning-up-of-the-source-tree-removal-of-redundant-files/198648/4 "2010-11-05T10:35:24Z")

</div>

> > Yes, we shouldn’t have any .cs files that are not included in any  
> > .csproj. I would be surprised if there were too many of them but there  
> > might be some. Feel free to send a patch that deletes them.

see here [https://github.com/alistair/ironruby/tree/cleanup](https://github.com/alistair/ironruby/tree/cleanup)

the cleanup commit directly

[https://github.com/alistair/ironruby/commit/7ea7f14c6f91e22ca3ee4a608499b7dfd5523c28](https://github.com/alistair/ironruby/commit/7ea7f14c6f91e22ca3ee4a608499b7dfd5523c28)

> So…
> 
> Question 1: Microsoft.Scripting.Core.csproj contains a “reference”  
> () to System.Linq.Expressions.txt which is not located within the  
> repository. Im assuming this is safe to remove?

I assumed this was to be removed and have committed it into the above  
branch.  
[1] I also added build.sh files within that branch that just document  
the  
xbuild commands I used to test compile. That commit can be safely  
ignored  
(and probably should be). I only tested the Runtime directory projects  
and  
only with Debug config. But im pretty confident it shouldn’t have  
broken the  
Silverlight builds.

[1]  
[https://github.com/alistair/ironruby/commit/8c348784a865080fef27e6ce668f02548d6b1722](https://github.com/alistair/ironruby/commit/8c348784a865080fef27e6ce668f02548d6b1722)
