Can't Build ! Internal compiler error!

Internal compiler error. See the console log for more information. output was:Microsoft (R) Visual C# Compiler version 4.6.0076.2

for C# 5
Copyright (C) Microsoft Corporation. All rights reserved.

This compiler is provided as part of the Microsoft (R) .NET Framework, but only supports language versions up to C# 5, which is no longer the latest version. For compilers that support newer versions of the C# programming language, see GitHub - dotnet/roslyn: The Roslyn .NET compiler provides C# and Visual Basic languages with rich code analysis APIs.

1 Like

Did you solve? I’ve same error

@TooManySugar can you post more details about your issue?

Installing VS2017 community and uninstalling seems “solved” the error, but that error is one I met in teh process.

The thing is. I’ve a game I finished last year, it took long to develop and got its final update on steam past year. I wanted to port to Windows Store. Game was developed in Unity 4.7.2 so targeting WSA 8.1, not universal.

I installed 8.1SDK and the program files\reference assembiles\frameworks.netcore\4.5.1 folder was missing, installed " .NET Framework 4.5.1 Developer Pack" from here:
https://www.microsoft.com/en-us/download/details.aspx?id=40772
and still was missing, after installing a ton of stuff finally got it appear by installing VS2013.U1.
So, first question would be. To target WSA 8.1 having VS installed is neccesary?. If yes what version?

Gonna asume answer is no cause uninstalling all VS all frameworks everything leaves the folder and the game does (almost) compile. The thing is. The System.IO is missing a class that is not in teh ones is meant to be missing like File.Close etc…

Theh error in the first post is the one I got when I after uninstalling absolutelly everything wiping the .netcore folders I did install unity, 8.1sdk and posibly I did unrar the backup of .netcore 4.5.1

So, questions. What is the minimum I need to target WSA from Unity 4.7.2?

Why do I get the SearchOption name space cant be found when compiling when I use as this?:

System.IO.SearchOption searchOption = System.IO.SearchOption.TopDirectoryOnly)

Without the file saving and serialization part the game does build but obviously I need those but I silenced those scripts to see if there was something else that was interfering but I’ve already sorted everything but the file saving and serialization that I was planning to solve using Unified IO and a Bson serializer.

I’ve avoided this avoiding the use of SearchOption…

Yes, Visual Studio 2013.

Because that enum is not available on .NET for Windows Store Apps for 8.1. It was added back in .NET for UWP: https://msdn.microsoft.com/en-us/library/ms143448(v=vs.110).aspx

.NET for Windows Store Apps for 8.1 was missing a lot of classes that were added back by Microsoft to .NET for UWP (even though it’s still missing a lot compared to full .NET 3.5 that Unity uses on other platforms and on il2cpp on UWP).

1 Like