dotnet / java-interop

Java.Interop provides open-source bindings of Java's Java Native Interface (JNI) for use with .NET managed languages such as C#
Other
201 stars 53 forks source link

Maybe Nuget package let fire error MSB6003 file name too long #738

Closed jingliancui closed 4 years ago

jingliancui commented 4 years ago

RefreshHeaderTwoLevelBinding.zip

No matter I place the project to the D driver or other sub folder.

The error alway throw from vs .

If you remove the nuget reference , it will build.

So , I guess this compile error is from the nuget reference.

Here the build message:

1>------ Rebuild All started: Project: RefreshHeaderTwoLevelBinding, Configuration: Debug Any CPU ------
1>C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\MSBuild\Xamarin\Android\Xamarin.Android.Bindings.targets(327,5): warning MSB6002: The command-line for the "BindingsGenerator" task is too long. Command-lines longer than 32000 characters are likely to fail. Try reducing the length of the command-line by breaking down the call to "BindingsGenerator" into multiple calls with fewer parameters per call.
1>C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\MSBuild\Xamarin\Android\Xamarin.Android.Bindings.targets(372,5): warning MSB6002: The command-line for the "BindingsGenerator" task is too long. Command-lines longer than 32000 characters are likely to fail. Try reducing the length of the command-line by breaking down the call to "BindingsGenerator" into multiple calls with fewer parameters per call.
1>C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\MSBuild\Xamarin\Android\Xamarin.Android.Bindings.targets(372,5): error MSB6003: The specified task executable "generator.exe" could not be run. System.ComponentModel.Win32Exception (0x80004005): 文件名或扩展名太长。
1>C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\MSBuild\Xamarin\Android\Xamarin.Android.Bindings.targets(372,5): error MSB6003:    at System.Diagnostics.Process.StartWithCreateProcess(ProcessStartInfo startInfo)
1>C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\MSBuild\Xamarin\Android\Xamarin.Android.Bindings.targets(372,5): error MSB6003:    at System.Diagnostics.Process.Start()
1>C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\MSBuild\Xamarin\Android\Xamarin.Android.Bindings.targets(372,5): error MSB6003:    at Microsoft.Build.Utilities.ToolTask.ExecuteTool(String pathToTool, String responseFileCommands, String commandLineCommands)
1>C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\MSBuild\Xamarin\Android\Xamarin.Android.Bindings.targets(372,5): error MSB6003:    at Microsoft.Build.Utilities.ToolTask.Execute()
========== Rebuild All: 0 succeeded, 1 failed, 0 skipped ==========
jingliancui commented 4 years ago

And I don't know why now have the MSB6002 warning.

jpobst commented 4 years ago

This has been fixed from this issue: https://github.com/xamarin/xamarin-android/issues/4956.

Preview release details are available on that ticket.