bflattened / bflat

C# as you know it but with Go-inspired tooling (small, selfcontained, and native executables)
GNU Affero General Public License v3.0
3.56k stars 102 forks source link

`bflat build --stdlib:zero` tries to build `/obj` files #196

Closed danilwhale closed 1 month ago

danilwhale commented 2 months ago

as zerolib is barebones it fails trying to compile stuff from /obj. only solution for this is to disable ImplicitUsings in .csproj and remove /obj folder every time it generates.

stacktrace:

D:\Users\danil\source\repos\ConsoleApp3\ConsoleApp3\obj\Debug\net8.0\.NETCoreApp,Version=v8.0.AssemblyAttributes.cs(4,35): error CS0234: The type or namespace name 'Versioning' does not exist in the namespace 'System.Runtime' (are you missing an assembly reference?)
D:\Users\danil\source\repos\ConsoleApp3\ConsoleApp3\obj\Debug\net8.0\ConsoleApp3.AssemblyInfo.cs(14,30): error CS0234: The type or namespace name 'AssemblyCompanyAttributeAttribute' does not exist in the namespace 'System.Reflection' (are you missing an assembly reference?)
D:\Users\danil\source\repos\ConsoleApp3\ConsoleApp3\obj\Debug\net8.0\ConsoleApp3.AssemblyInfo.cs(14,30): error CS0234: The type or namespace name 'AssemblyCompanyAttribute' does not exist in the namespace 'System.Reflection' (are you missing an assembly reference?)
D:\Users\danil\source\repos\ConsoleApp3\ConsoleApp3\obj\Debug\net8.0\ConsoleApp3.AssemblyInfo.cs(15,30): error CS0234: The type or namespace name 'AssemblyConfigurationAttributeAttribute' does not exist in the namespace 'System.Reflection' (are you missing an assembly reference?)
D:\Users\danil\source\repos\ConsoleApp3\ConsoleApp3\obj\Debug\net8.0\ConsoleApp3.AssemblyInfo.cs(15,30): error CS0234: The type or namespace name 'AssemblyConfigurationAttribute' does not exist in the namespace 'System.Reflection' (are you missing an assembly reference?)
D:\Users\danil\source\repos\ConsoleApp3\ConsoleApp3\obj\Debug\net8.0\ConsoleApp3.AssemblyInfo.cs(16,30): error CS0234: The type or namespace name 'AssemblyFileVersionAttributeAttribute' does not exist in the namespace 'System.Reflection' (are you missing an assembly reference?)
D:\Users\danil\source\repos\ConsoleApp3\ConsoleApp3\obj\Debug\net8.0\ConsoleApp3.AssemblyInfo.cs(16,30): error CS0234: The type or namespace name 'AssemblyFileVersionAttribute' does not exist in the namespace 'System.Reflection' (are you missing an assembly reference?)
D:\Users\danil\source\repos\ConsoleApp3\ConsoleApp3\obj\Debug\net8.0\ConsoleApp3.AssemblyInfo.cs(17,30): error CS0234: The type or namespace name 'AssemblyInformationalVersionAttributeAttribute' does not exist in the namespace 'System.Reflection' (are you missing an assembly reference?)
D:\Users\danil\source\repos\ConsoleApp3\ConsoleApp3\obj\Debug\net8.0\ConsoleApp3.AssemblyInfo.cs(17,30): error CS0234: The type or namespace name 'AssemblyInformationalVersionAttribute' does not exist in the namespace 'System.Reflection' (are you missing an assembly reference?)
D:\Users\danil\source\repos\ConsoleApp3\ConsoleApp3\obj\Debug\net8.0\ConsoleApp3.AssemblyInfo.cs(18,30): error CS0234: The type or namespace name 'AssemblyProductAttributeAttribute' does not exist in the namespace 'System.Reflection' (are you missing an assembly reference?)
D:\Users\danil\source\repos\ConsoleApp3\ConsoleApp3\obj\Debug\net8.0\ConsoleApp3.AssemblyInfo.cs(18,30): error CS0234: The type or namespace name 'AssemblyProductAttribute' does not exist in the namespace 'System.Reflection' (are you missing an assembly reference?)
D:\Users\danil\source\repos\ConsoleApp3\ConsoleApp3\obj\Debug\net8.0\ConsoleApp3.AssemblyInfo.cs(19,30): error CS0234: The type or namespace name 'AssemblyTitleAttributeAttribute' does not exist in the namespace 'System.Reflection' (are you missing an assembly reference?)
D:\Users\danil\source\repos\ConsoleApp3\ConsoleApp3\obj\Debug\net8.0\ConsoleApp3.AssemblyInfo.cs(19,30): error CS0234: The type or namespace name 'AssemblyTitleAttribute' does not exist in the namespace 'System.Reflection' (are you missing an assembly reference?)
D:\Users\danil\source\repos\ConsoleApp3\ConsoleApp3\obj\Debug\net8.0\ConsoleApp3.AssemblyInfo.cs(20,30): error CS0234: The type or namespace name 'AssemblyVersionAttributeAttribute' does not exist in the namespace 'System.Reflection' (are you missing an assembly reference?)
D:\Users\danil\source\repos\ConsoleApp3\ConsoleApp3\obj\Debug\net8.0\ConsoleApp3.AssemblyInfo.cs(20,30): error CS0234: The type or namespace name 'AssemblyVersionAttribute' does not exist in the namespace 'System.Reflection' (are you missing an assembly reference?)
D:\Users\danil\source\repos\ConsoleApp3\ConsoleApp3\obj\Debug\net8.0\ConsoleApp3.GlobalUsings.g.cs(3,29): error CS0234: The type or namespace name 'Collections' does not exist in the namespace 'System' (are you missing an assembly reference?)
D:\Users\danil\source\repos\ConsoleApp3\ConsoleApp3\obj\Debug\net8.0\ConsoleApp3.GlobalUsings.g.cs(4,29): error CS0234: The type or namespace name 'IO' does not exist in the namespace 'System' (are you missing an assembly reference?)
D:\Users\danil\source\repos\ConsoleApp3\ConsoleApp3\obj\Debug\net8.0\ConsoleApp3.GlobalUsings.g.cs(5,29): error CS0234: The type or namespace name 'Linq' does not exist in the namespace 'System' (are you missing an assembly reference?)
D:\Users\danil\source\repos\ConsoleApp3\ConsoleApp3\obj\Debug\net8.0\ConsoleApp3.GlobalUsings.g.cs(6,29): error CS0234: The type or namespace name 'Net' does not exist in the namespace 'System' (are you missing an assembly reference?)
D:\Users\danil\source\repos\ConsoleApp3\ConsoleApp3\obj\Debug\net8.0\ConsoleApp3.GlobalUsings.g.cs(8,39): error CS0234: The type or namespace name 'Tasks' does not exist in the namespace 'System.Threading' (are you missing an assembly reference?)