[csharp] Fix project glob pattern (#5605)

This fixes the glob pattern to remove hard-coded namespaces, and exclude
the obj folder. This removes a newly introduced issue that breaks
apiPackage and modelPackage support and fixes a problem with Xamarin
pulling in obj/**.cs when globbing **/*.cs.
This commit is contained in:
Jim Schubert 2017-05-10 13:01:45 -04:00 committed by wing328
parent 9b68f02f83
commit eaa2dc6d21
2 changed files with 4 additions and 5 deletions

View File

@ -88,10 +88,8 @@
{{/netStandard}} {{/netStandard}}
</ItemGroup> </ItemGroup>
<ItemGroup> <ItemGroup>
<Compile Include="Api\**\*.cs"/> <Compile Include="**\*.cs"
<Compile Include="Client\**\*.cs"/> Exclude="obj\**" />
<Compile Include="Model\**\*.cs"/>
<Compile Include="Properties\**\*.cs"/>
</ItemGroup> </ItemGroup>
{{^netStandard}} {{^netStandard}}
<ItemGroup> <ItemGroup>

View File

@ -78,7 +78,8 @@
</Reference> </Reference>
</ItemGroup> </ItemGroup>
<ItemGroup> <ItemGroup>
<Compile Include="**\*.cs"/> <Compile Include="**\*.cs"
Exclude="obj\**"/>
</ItemGroup> </ItemGroup>
<ItemGroup> <ItemGroup>
<None Include="packages.config" /> <None Include="packages.config" />