laurentdardenne / convertform Goto Github PK
View Code? Open in Web Editor NEWPowershell module for converting a Winform file (xxx.Designer.cs) to a PowerShell script .ps1. Old Codeplex project
Powershell module for converting a Winform file (xxx.Designer.cs) to a PowerShell script .ps1. Old Codeplex project
During a conversion of WinForm app built with Visual Studio into a PowerShell code, I get the error when the project contains some included resources. So far I was not able to succeed on any of the computers I've tested a simple app with a single button and an image in it.
Seems like for some reason the project is converting properly, but the C# .resx file is not converted correctly. The full console error states:
PS C:\Users\Admin\Documents\Test-VS\Test> Convert-Form -Path "C:\Users\Admin\Documents\Test-VS\Test\Form1.Designer.cs"
New-ResourcesFile : Error (-1) during the generation of the resource file. Check the log file C:\Users\Admin\Documents\Test-VS\Test\Form1Properties.resources.log
At C:\Program Files\WindowsPowerShell\Modules\ConvertForm\2.0.0\ConvertForm.psm1:1022 char:7
+ New-ResourcesFile -Source $rsxSource -Destination $rsxDestinati ...
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : NotSpecified: (:) [Write-Error], WriteErrorException
+ FullyQualifiedErrorId : Microsoft.PowerShell.Commands.WriteErrorException,New-ResourcesFile
I am also attaching the log outpu
Form1Properties.resources.log
t
Any Ideas
Got this error trying to install
PackageManagement\Register-PackageSource : Module Repository 'OttoMatt' exists.
At C:\Program Files\WindowsPowerShell\Modules\PowerShellGet\1.0.0.1\PSModule.psm1:4211 char:17
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Wow tried to post the output and git hub screws it, sorry for asking, I have no idea how to format the debug.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.