Skip to content
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

Object reference not set - cannot start new project #213

Open
testlas opened this issue Dec 14, 2017 · 1 comment
Open

Object reference not set - cannot start new project #213

testlas opened this issue Dec 14, 2017 · 1 comment

Comments

@testlas
Copy link

testlas commented Dec 14, 2017

Can't create new projects and build them. With two one test project it's the same.
obraz

It's new project and only form added. Tried few times and the same situation.
New project "empty project" has button1 in designer file. Why?
It's in all new created projects.

Powershell Pro version 1.1.1 - downloaded from previous topic and 1.2.0

File: Form1.designer.ps1
[void][System.Reflection.Assembly]::Load('System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a')
[void][System.Reflection.Assembly]::Load('System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089')
$MainForm = New-Object -TypeName System.Windows.Forms.Form
[System.Windows.Forms.Button]$button1 = $null
function InitializeComponent
{
$MainForm.SuspendLayout()

#MainForm

$MainForm.Name = 'MainForm'
$MainForm.ResumeLayout($false)
}

InitializeComponent

obraz

obraz

obraz

obraz

@adamdriscoll
Copy link
Owner

@testlas I cannot reproduce this. Could you please send me your sample project so I can try with that?

Thanks

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants