-
Notifications
You must be signed in to change notification settings - Fork 13
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
ISHRemote Compilation failed on Visual Studio 2022 #161
Comments
ISHRemote requires net48 and net6.0 frameworks for a successful compilation. Are both frameworks available on your Windows 11 machine? |
yes both are available on windows 11. I verified both the versions using the below command PS Get-ItemProperty -Path "HKLM:\SOFTWARE\Microsoft\NET Framework Setup\NDP\v4\Full" -Name Version Version : 4.8.04161 PS dotnet --version |
here is the complete compilation output for reference |
i could fix the owsh issue by updating the alias and proj file local to my system. now i see a difrferent problem Build started... |
can anybody guide me here how to fix this manifest issue? |
i am getting this manifest issue for all V1.0.0, 7.0.0 and 7.1.0 versions. Is something is missing? |
1> Trisoft.ISHRemote.Objects.Public.IshUserRole: |
which is the correct version for which i can compile the code to Tridion Docs 15. We need to compile and integrate into our custom tools. This is somewhat like a blocker. |
Did you install PowerShell Core? https://github.com/PowerShell/PowerShell |
Thanks for your inputs. I found that Powershell core was not installed on my system. Installing PS Core resolved the problem
|
I don't know how you are using the ISHRemote library in your project but probably you don't need PS Core when deploying your project on an other system. ISHRemote can be used with PowerShell and PowerShell Core and therefor it is compiled twice, one for the full framework net4.8 and once for .NET Core net6.0. Pick the right one for your project. |
Quite confused why you are rebuilding the project - over a full C# project reference - instead of doing an Assembly reference. Are you "adapting ISHRemote code"? If there are no further clarifications or justifications, we consider to close this issue. |
Team,
I would like to set the context here first here before getting in deeper.
Objective:
Write a Simple C# wrapper to execute the ISHRemote CmdLets.
Steps:
1. i downloaded the bundle as is to verify the bundles by writing a sample
c# application to just establish Session without installation of ishremote
on the system, i started getting error "New-IshSession cmdLet not Found"
Error.
2. Then i installed 7.0.0 version of IshRemote on Windows 11 OS. Then
retried the application.
3. This time started getting the error differently saying "IshRemote"
Module is not imported. I am stuck here. Reason is i am able to run the
commands on powershell editor after following the instructions mentioned in
the mail trail below. But am still not able to involve New-IshSession
command let in c# application.
4. Not Sure what exactly the problem is. I noticed that the issue is
happening on windows 11 OS. I also verified with
Still i could not fix the issue.
I have set the environments as mentioned below mail trail.
Any suggestions or idea would be really helpful.
Thanks & Regards
Shrinidhi
…On Mon, Jul 24, 2023 at 7:17 PM Ivo van de Lagemaat < ***@***.***> wrote:
ISHRemote requires net48 and net6.0 frameworks for a successful
compilation. Are both frameworks available on your Windows 11 machine?
—
Reply to this email directly, view it on GitHub
<#161 (comment)>, or
unsubscribe
<https://github.com/notifications/unsubscribe-auth/AXGR56SOBYOYI65FQJET7DDXRZ4GFANCNFSM6AAAAAA2VTATLA>
.
You are receiving this because you authored the thread.Message ID:
***@***.***>
|
Hi Shrinidhi ... So ISHRemote is C# code that is delivered as a .NET Assembly complying with the PowerShell library standard. In turn the assembly library can be loaded (~ A. So based on the above you are wrapping the PowerShell executable again in a new C# program. Something along the lines of https://stackoverflow.com/questions/13251076/calling-powershell-from-c-sharp ? I'm still puzzled what business problem you are trying to solve. B. Either you scenario above or what I will describe next is for me not the core purpose of ISHRemote, it is an edge case ... it is however open source so in a way you can have multiple attempts for whatever you desire :) Why not load the Best wishes, |
Hi ddmeyer,
Thanks for your response.
My purpose of using C# is to write a ISHRemote Wrapper for certain common
functionalities for our daily and regular work for
1. Establishing Connection to Tridion 14 SP4 and getting prepared
with IShRemote Wrapper for Tridion 15.
2. invoke the API within a wrapper using IshRemote Modules and solve our
BP.
I could fix the problem
1. By changing the platform from ARM64 to _x64 and adding the references of
Trisoft.IshRemote dll library from Modulepath directly. (Still not sure why
the Any CPU) platform settings doesn't work in visual studio.
2. I could run the wrapper in C# using ScriptBlock and IShRemote Modules
and was able to get the Results successfully.
Thanks For your inputs and response.
…On Fri, Sep 1, 2023 at 8:46 PM ddemeyer ***@***.***> wrote:
Hi Shrinidhi ... So ISHRemote is C# code that is delivered as a .NET
Assembly complying with the PowerShell library standard. In turn the
assembly library can be loaded (~ Import-Module) in a Windows
PowerShell.exe or Pwsh.exe process so you can run its cmdlets (~
New-IshSession).
A. So based on the above you are wrapping the PowerShell executable again
in a new C# program. Something along the lines of
https://stackoverflow.com/questions/13251076/calling-powershell-from-c-sharp
? I'm still puzzled what business problem you are trying to solve.
B. Either you scenario above or what I will describe next is for me *not*
the core purpose of ISHRemote, it is an edge case ... it is however open
source so in a way you can have multiple attempts for whatever you desire
:) Why not load the Trisoft.ISHRemote.dll directly into your C# project
and run the necessary classes (~ ÌshSession) yourself. In the end it is
open source so you can have a look what is happening inside
New-IshSession`.
Best wishes,
Dave
—
Reply to this email directly, view it on GitHub
<#161 (comment)>, or
unsubscribe
<https://github.com/notifications/unsubscribe-auth/AXGR56SI3TOBRMIE6SCGU2LXYH35LANCNFSM6AAAAAA2VTATLA>
.
You are receiving this because you authored the thread.Message ID:
***@***.***>
|
Thanks for closing the loop, appreciated! Just as a reminder...
|
Cool, thanks for the heads up!
When is the new version release of ishremote expected for tridion 15?
As we are migrating to tridion 15 in the coming month, I would like to know
can we use the latest version a at that time by October 15 2023?
Appreciate your help
…On Tue, Sep 5, 2023, 12:21 ddemeyer ***@***.***> wrote:
Thanks for closing the loop, appreciated! Just as a reminder...
- You are currently on the released ISHRemote v7.0 with release notes
near
https://github.com/RWS/ISHRemote/blob/master/Doc/ReleaseNotes-ISHRemote-0.7.md
- There is a work-in-progress branch to introduce Modern
Authentication - a big feature of Tridion Docs 15/15.0.0 - in an upcoming
ISHRemote v8.0 ... the draft release notes are in a branch on
https://github.com/RWS/ISHRemote/blob/feature/152-refactor-InfoShareWcfConnection/Doc/ReleaseNotes-ISHRemote-8.0.md
—
Reply to this email directly, view it on GitHub
<#161 (comment)>, or
unsubscribe
<https://github.com/notifications/unsubscribe-auth/AXGR56RR2X5SUKFI3AOOMILXY3DYFANCNFSM6AAAAAA2VTATLA>
.
You are receiving this because you authored the thread.Message ID:
***@***.***>
|
error MSB3073: The command "pwsh -NonInteractive -command "Import-Module D:\Cops-Projects\Repositories\GitHub\ISHRemote-TD15\Source\ISHRemote\Trisoft.ISHRemote\bin/Debug/net48/Trisoft.ISHRemote.dll -Force;$cmdletsToExport=(Get-Module -Name Trisoft.ISHRemote).ExportedCommands.Keys;New-ModuleManifest -Path 'D:\Cops-Projects\Repositories\GitHub\ISHRemote-TD15\Source\ISHRemote\Trisoft.ISHRemote\bin/Debug/ISHRemote/ISHRemote.psd1' -FormatsToProcess 'ISHRemote.Format.ps1xml' -FunctionsToExport @('Get-IshAuxSessionState', 'New-IshAuxCompletionResult', 'Register-IshAuxParameterCompleter') -RootModule 'ISHRemote.psm1' -ModuleVersion '7.1.0' -Prerelease 'preview001' -Guid '0314ffdb-6083-4c4d-aa01-8bfaac51a7e4' -Author 'RWS Group for and on behalf of its affiliates and subsidiaries' -CompanyName 'RWS Group for and on behalf of its affiliates and subsidiaries' -Copyright 'Copyright (c) 2023 All Rights Reserved by the RWS Group for and on behalf of its affiliates and subsidiaries.' -Description 'Business automation module on top of Tridion Docs Content Manager (Knowledge Center Content Manager, LiveContent Architect, Trisoft InfoShare)' -PowerShellVersion '5.1' -ClrVersion '4.0' -DotNetFrameworkVersion '4.8' -LicenseUri 'https://github.com/rws/ISHRemote/blob/master/LICENSE.TXT' -ProjectUri 'https://github.com/rws/ISHRemote/' -CmdletsToExport @($cmdletsToExport)"" exited with code 9009.
Code is taken from the GitHub Repository master branch and compiling directly on the Windows 11 machine
Appreciate any one with addresses this issue or suggestions here, what is going wrong in compiling the code on Windows 11 with dotnet version 7.0+
The text was updated successfully, but these errors were encountered: