Giter Site home page Giter Site logo

laurentdardenne / convertform Goto Github PK

View Code? Open in Web Editor NEW
28.0 28.0 6.0 890 KB

Powershell module for converting a Winform file (xxx.Designer.cs) to a PowerShell script .ps1. Old Codeplex project

PowerShell 55.92% C# 40.34% HTML 3.53% ASP.NET 0.21%
converter design-tools powershell winforms

convertform's People

Contributors

laurentdardenne avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

convertform's Issues

New-ResourcesFile : Error (-1) during the generation of the resource file

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

Help please

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

  • ... $null = PackageManagement\Register-PackageSource @PSBoundParamete ...
  •             ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    
    • CategoryInfo : ResourceExists: (Microsoft.Power...erPackageSource:RegisterPackageSource) [Register-Pack
      ageSource], Exception
    • FullyQualifiedErrorId : PackageSourceExists,Microsoft.PowerShell.PackageManagement.Cmdlets.RegisterPackageSource

Wow tried to post the output and git hub screws it, sorry for asking, I have no idea how to format the debug.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.