Projekt do pliku exe

0

Witam jestem zielony w kwestii programowania nie wiem co się z czym je ;) ma projekt który otwieram w visual studio i chciałem go zapisać do pliku exe lecz ma tyle błędów że nie wiem o co nawet tam chodzi czy ktoś mógł by pomóc mi zrobić exe ?

user image

0

Jasne, pomożemy.
Możesz:

  1. Wpisać błąd w wyszukiwarkę (ćwicz googlefu)
  2. Pokazać kod/raport błędów

Moja szklana kula...gdzieś ją zgubiłem :P

0

Może jednak przeczytaj powoli cały rozdział/tutorial ;-)
Nie uda się "zamienić na exe" (skompilować), jeśli masz błędy w kodzie.

0

dodałem screen może coś komuś to mówi ?

0

Próbujesz debugować program nie buildując go wcześniej....
Kliknij Ctrl+Shift+B albo F5

0

No widzimy ten błąd, który mówi Ci, żebyś między innymi zrobił Build Solution. Z tym, że kluczowe pytanie na początek, czy na samym etapie kompilacji są jakieś błędy ??

0
1>------ Build started: Project: bot, Configuration: Debug Any CPU ------
1>C:\Users\Main.cs(657,9,657,10): warning CS0642: Possible mistaken empty statement
1>C:\Users\Main.cs(26,40,26,77): error CS0133: The expression being assigned to 'Main._provision' must be constant
========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped ==========

jak wchodzę do Main:

 Severity	Code	Description	Project	File	Line	Suppression State
Error	CS1660	Cannot convert lambda expression to type 'Delegate' because it is not a delegate type	bot	C:\Users\bot\Main.cs	343	Active
Error	CS1660	Cannot convert lambda expression to type 'Delegate' because it is not a delegate type	bot	C:\Users\\bot\Main.cs	362	Active
Error	CS0165	Use of unassigned local variable 'flag'	bot	C:\Users\bot\Main.cs	393	Active
Error	CS1660	Cannot convert lambda expression to type 'Delegate' because it is not a delegate type	bot	C:\Users\\bot\Main.cs	660	Active
Error	CS1660	Cannot convert lambda expression to type 'Delegate' because it is not a delegate type	bot	C:\Users\\bot\Main.cs	701	Active
Error	CS1660	Cannot convert lambda expression to type 'Delegate' because it is not a delegate type	bot	C:\Users\\bot\Main.cs	739	Active
Error	CS1660	Cannot convert lambda expression to type 'Delegate' because it is not a delegate type	bot	C:\Users\\Main.cs	823	Active
Error	CS0165	Use of unassigned local variable 'result'	bot	C:\Users\bot\Main.cs	853	Active
Error	CS0165	Use of unassigned local variable 'clientSeed'	bot	C:\Users\bot\Main.cs	889	Active
Error	CS0165	Use of unassigned local variable 'serverSeed'	bot	C:\Users\bot\Main.cs	891	Active
Error	CS0571	'decimal.operator ++(decimal)': cannot explicitly call operator or accessor	bot	C:\Users\bot\Main.cs	919	Active
Error	CS1660	Cannot convert lambda expression to type 'Delegate' because it is not a delegate type	bot	C:\Users\\bot\Main.cs	932	Active
Error	CS0571	'decimal.operator ++(decimal)': cannot explicitly call operator or accessor	bot	C:\Users\bot\Main.cs	948	Active
Error	CS1660	Cannot convert lambda expression to type 'Delegate' because it is not a delegate type	bot	C:\Users\bot\Main.cs	971	Active
Error	CS1660	Cannot convert lambda expression to type 'Delegate' because it is not a delegate type	bot	C:\Users\\bot\Main.cs	1060	Active
Error	CS1660	Cannot convert lambda expression to type 'Delegate' because it is not a delegate type	bot	C:\Users\\bot\Main.cs	1079	Active
Error	CS1660	Cannot convert lambda expression to type 'Delegate' because it is not a delegate type	bot	C:\Users\\bot\Main.cs	1099	Active
Error	CS1660	Cannot convert lambda expression to type 'Delegate' because it is not a delegate type	bot	C:\Users\bot\Main.cs	1107	Active
Error	CS0165	Use of unassigned local variable 'lastWin'	bot	C:\Users\bot\Main.cs	1116	Active
Error	CS0165	Use of unassigned local variable 'lastPayIn'	bot	C:\Users\bot\Main.cs	1116	Active
Error	CS1660	Cannot convert lambda expression to type 'Delegate' because it is not a delegate type	bot	C:\Users\bot\Main.cs	1252	Active
Error	CS0133	The expression being assigned to 'Main._provision' must be constant	bot	C:\Users\\bot\Main.cs	26	Active
Error	CS0023	Operator '-' cannot be applied to operand of type 'string'	bot	C:\Users\bot\Main.cs	309	Active

takie błędy mam :-/

0

No to musisz po kolei naprawić każdy z tych błędów, potem skompilować projekt, a na końcu uruchomić.
Umiesz w ogóle programować, czy próbujesz uruchomić jakiś kod znaleziony w necie?

0

Nie umiem programować Nie wiem z czym co się je ;\ i trafiłeś w 100% że próbuje odpalić kod znaleziony w sieci

3

@naspidowany

to tak nie dziala. Albo komus zaplacisz zeby zrobil to za Ciebie albo musisz sie nauczyc sam to robic. My mozemy pomoc w nauce, ale nie dajemy gotowcow za darmo ;)
Za wiedze sie placi. Jak ktos ma checi sie nauczyc to zawsze pomagamy ;)

Wiec polecam Ci poczytac o C# podstawach jezyka. Jaki kolwiek kurs.

Wtedy gdy zrozumeisz co to bledy kompilacji i nie bedziesz sobie mogl z czyms poradzic to przyjdz

0

Ok dzięki za informacje pozdrawiam

1 użytkowników online, w tym zalogowanych: 0, gości: 1