Skip to content
This repository was archived by the owner on Sep 17, 2020. It is now read-only.
This repository was archived by the owner on Sep 17, 2020. It is now read-only.

Support System.IO.Path #26

@planasmultimedia

Description

@planasmultimedia

Hi !
I have been using your library to insert C# tasks in the Csproj and I'm getting an error when i try to use the functions from Path. The error is the following :
--error CS0103: The name 'Path' doesn't exists in the actual Context
--the task generator "CodeTaskFactory" cannot be loaded from the assembly "C:...\netstandard1.5\RoslynCodeTaskFactory.dll". The task generator should a value for the property "TaskType"

The url of the dll is correct and the dll exists.

I have tryied everything and still getting the error. The task that I'm trying to execute is the following:

cpp_files = new List(); List h_files = new List(); List qml_files = new List();
                string[] filenames = Directory.GetFiles(pathSourceFiles);

                foreach (string f in filenames)
                {
                    String name = Path.GetFileName(f);
                    if (name.EndsWith(".cpp"))
                    {
                        cpp_files.Add(name);
                    }
                    if (name.EndsWith(".h"))
                    {
                        h_files.Add(name);
                    }
                    if (name.EndsWith(".qml"))
                    {
                        qml_files.Add(name);

                    }
                }
            ]]>
        </Code>
    </Task>
</UsingTask>

And in the Csproj i'm Referencing the package as:

None

The project is NetCore and it is getting the Roslyn dll from the netstandard folder

Thanks in advance,
Marc.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions