New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Invalid runtimeconfig.json in .NET Benchmark #1328
Comments
@VladimirFedorchenko7 could you please share the source code of your project and the full text of the error? |
It is the code: using System;
using BenchmarkDotNet.Attributes;
using BenchmarkDotNet.Running;
namespace BenchmarkTest
{
class Program
{
static void Main(string[] args)
{
BenchmarkRunner.Run<Test>();
}
}
public class Test
{
[Benchmark]
public void Run()
{
Console.WriteLine("Hello World!");
}
}
} |
@VladimirFedorchenko7 do you have spaces in the full path to your project? |
@AndreyAkinshin No, I have no spaces in the full path to my project. |
@VladimirFedorchenko7 could you please show the content of your |
@AndreyAkinshin |
@VladimirFedorchenko7 ok, one more question: could you say the full path length of the |
@AndreyAkinshin D:\Projects\MyProject\resources\Performance\Performance.Core\bin\Release\netcoreapp3.1\28fb67a8-6dfa-4475-bff6-ae9b4e31f3c6.runtimeconfig.dev.json |
@AndreyAkinshin In .NET framework benchmark was a problem with too long name of class. I solved this problem just changed the name to short one. |
@AndreyAkinshin But in Core project I can't solve this problem. Why did you close the question? |
@AndreyAkinshin I have two benchmark projects: on .NET Framework and .NET Core. In .NET Framework was a trouble with name lenght, I solved it, but I think it is a bug and must be fixed. In .NET Core project I can't solve this problem. Please, help me. |
@adamsitnik any ideas what can be wrong with runtimeconfig? |
We have two different toolchains, one for .NET Core and one for Full .NET Framework. The .NET Core toolchain creates files with longer paths. All the guids etc in the path of the auto-generated are to protect us from duplicates. We don't generate I agree that the long path problem reported as "invalid runtimeconfig.json" is wrong, but it's an output from @VladimirFedorchenko7 could you please create a simple .NET Core app ( Once you do that, please enable long paths support on your system or move the project closer to the root. |
@adamsitnik Thank you for helping. Enabling long path support resolved my problem. |
I have simple benchmark project(using BenchmarkDotNet lib) on .net core 3.1 that print Hello message to console. When project on disk D root the benchmark runs successfully, but if my project deeper in file system it fails with invalid runtimeconfig.json. Please, help me.
The text was updated successfully, but these errors were encountered: