Exilon
Exilon
CC#
Created by Exilon on 12/6/2023 in #help
Custom cmdlet giving me a missing assembly error
Ok thanks
87 replies
CC#
Created by Exilon on 12/6/2023 in #help
Custom cmdlet giving me a missing assembly error
Here
87 replies
CC#
Created by Exilon on 12/6/2023 in #help
Custom cmdlet giving me a missing assembly error
On the csproj file I sent
87 replies
CC#
Created by Exilon on 12/6/2023 in #help
Custom cmdlet giving me a missing assembly error
System.Net.Http because I want my cmdlet to use an API
87 replies
CC#
Created by Exilon on 12/6/2023 in #help
Custom cmdlet giving me a missing assembly error
I just get this one Could not load file or assembly 'System.Net.Http, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a'. The system cannot find the file specified
87 replies
CC#
Created by Exilon on 12/6/2023 in #help
Custom cmdlet giving me a missing assembly error
I haven;t gotten any porting errors
87 replies
CC#
Created by Exilon on 12/6/2023 in #help
Custom cmdlet giving me a missing assembly error
And I mean
87 replies
CC#
Created by Exilon on 12/6/2023 in #help
Custom cmdlet giving me a missing assembly error
.net2 is really old :(
87 replies
CC#
Created by Exilon on 12/6/2023 in #help
Custom cmdlet giving me a missing assembly error
Hm
87 replies
CC#
Created by Exilon on 12/6/2023 in #help
Custom cmdlet giving me a missing assembly error
Yes
87 replies
CC#
Created by Exilon on 12/6/2023 in #help
Custom cmdlet giving me a missing assembly error
so would there be a flag to use the latest version of .net?
87 replies
CC#
Created by Exilon on 12/6/2023 in #help
Custom cmdlet giving me a missing assembly error
dotnet new psmodule generates an the old version I described
87 replies
CC#
Created by Exilon on 12/6/2023 in #help
Custom cmdlet giving me a missing assembly error
hmmm
87 replies
CC#
Created by Exilon on 12/6/2023 in #help
Custom cmdlet giving me a missing assembly error
hm
87 replies
CC#
Created by Exilon on 12/6/2023 in #help
Custom cmdlet giving me a missing assembly error
I just used the template as a starting point
87 replies
CC#
Created by Exilon on 12/6/2023 in #help
Custom cmdlet giving me a missing assembly error
New
87 replies
CC#
Created by Exilon on 12/6/2023 in #help
Custom cmdlet giving me a missing assembly error
And I can successfully import the cmdlet
87 replies
CC#
Created by Exilon on 12/6/2023 in #help
Custom cmdlet giving me a missing assembly error
So I managed to port it using the dontet upgrade assistant tool
87 replies
CC#
Created by Exilon on 12/6/2023 in #help
Custom cmdlet giving me a missing assembly error
I generated the template but I think it generated a template that uses an old version of C#: csproj file:
<Project Sdk="Microsoft.NET.Sdk">

<PropertyGroup>
<TargetFramework>netstandard2.0</TargetFramework>
<AssemblyName>Project</AssemblyName>
</PropertyGroup>

<ItemGroup>
<PackageReference Include="PowerShellStandard.Library" Version="5.1.0-preview-06">
<PrivateAssets>All</PrivateAssets>
</PackageReference>
</ItemGroup>

</Project>
<Project Sdk="Microsoft.NET.Sdk">

<PropertyGroup>
<TargetFramework>netstandard2.0</TargetFramework>
<AssemblyName>Project</AssemblyName>
</PropertyGroup>

<ItemGroup>
<PackageReference Include="PowerShellStandard.Library" Version="5.1.0-preview-06">
<PrivateAssets>All</PrivateAssets>
</PackageReference>
</ItemGroup>

</Project>
Is there a way to migrate it to a newer version?
87 replies
CC#
Created by Exilon on 12/6/2023 in #help
Custom cmdlet giving me a missing assembly error
For sure lol
87 replies