playMaker

Author Topic: compile Error about AotStubs.cs[SOLVED]  (Read 1642 times)

snaka

  • Playmaker Newbie
  • *
  • Posts: 3
compile Error about AotStubs.cs[SOLVED]
« on: March 04, 2022, 10:16:26 PM »
I suddenly got a compile error, can anyone help me?
The error looks like this.

Assets/Unity.VisualScripting.Generated/VisualScripting.Core/AotStubs.cs(1,2): error CS1040: Preprocessor directives must appear as the first non-whitespace character on a line


Code: [Select]
// <auto-generated>
//     This code was generated by a tool.
//     Runtime Version:4.0.30319.42000
//
//     Changes to this file may cause incorrect behavior and will be lost if
//     the code is regenerated.
// </auto-generated>
//------------------------------------------------------------------------------

namespace Unity.VisualScripting.Generated.Aot
{


I looked at AotStubs.cs and it looks <auto-generated>. How should I modify it?
« Last Edit: March 05, 2022, 08:59:36 PM by snaka »

snaka

  • Playmaker Newbie
  • *
  • Posts: 3
Re: compile Error about AotStubs.cs
« Reply #1 on: March 05, 2022, 07:28:19 AM »
Continued.
I cloned the project back from GitHub and opened it, and it worked without errors. That's a relief.

However, once I build it on iOS, it fails and then goes into a compile error state again.

I found two similar errors in this project. I am at a loss.

djaydino

  • Administrator
  • Hero Member
  • *****
  • Posts: 7616
    • jinxtergames
Re: compile Error about AotStubs.cs
« Reply #2 on: March 05, 2022, 05:48:10 PM »
Hi,
it is referencing to unity.visualscripting
Are you using unity visualscripting together with Playmaker or is unity's visual scripting tool only installed.
if only installed and not used, then try to remove it.
else its best to ask on the unity forum for a solution

snaka

  • Playmaker Newbie
  • *
  • Posts: 3
Re: compile Error about AotStubs.cs
« Reply #3 on: March 05, 2022, 08:58:24 PM »
Thank you for your reply.
Resolved!

I removed the visual scripting from the package manager and the error is gone.
Thank you very much!!!