Skip to content

ScanUnsupportedChars script for Azure File Sync kicks error: Add-Type -ReferencedAssemblies $assemblies -TypeDefinition @" #173

@TheDeuceYouSay

Description

@TheDeuceYouSay

Downloaded code and when trying to run per example, kicked the following error:

PS> ./ScanUnsupportedChars.ps1 -SharePath \sync.contoso.com\share -CsvPath C:\temp\unsupportedchars
Add-Type: C:\Users\xx\Downloads\azure-files-samples-master\azure-files-samples-master\ScanUnsupportedChars\ScanUnsupportedChars.ps1:130
Line |
130 | Add-Type -ReferencedAssemblies $assemblies -TypeDefinition @"
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
| (8,14): error CS0234: The type or namespace name 'Linq' does not exist in the namespace 'System' (are you
| missing an assembly reference?) using System.Linq; ^

server name changed above for posting.

Any idea how I can resolve this?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions