Hot to make Visual Studio 2010 ignore .java files

I have a website that contains sample Java code. Visual Studio insists it is J # code and complains that it cannot compile it because J # is not available.

If I exclude files from the project, Visual Studio renames the files splitting them.

What should I do?

+3


source to share


1 answer


You can mark them as "content" in csproj. Or click the item in explorer -> properties and set BuildAction to Content or edit your csproj manually and change

<Compile Include="Whatever.java" />

      



to

<Content Include="Whatever.java" />

      

+1


source







All Articles