473,406 Members | 2,867 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,406 software developers and data experts.

command line program doesn't run!

Please tell me what am I doing wrong in the following;

I have a WPF program that I build it in IDE and ran it, it runs fine.
I wanted to make it an exe through command line compiler(why, I need
to do some additional work) to I did a build in IDE and took the
compiler parameters and wrote a batch program to create the exe. It
compiled successfully and created the exe. But when try to run it I
get the error that Window1.xaml not found.

I have 2 part question;
1. What is the correct way to create single exe that I can distribute
it to the client, without giving all the xaml files?
2. I did find couple of tools from some blogs like ac.exe or xamlc.exe
to convert the xaml to baml. But even if I convert it to baml how can
I add it to the exe file?

Thanks.

Mar 27 '08 #1
5 2205
On Mar 27, 11:28*am, CSharper <cshar...@gmx.comwrote:
Please tell me what am I doing wrong in the following;

I have a WPF program that I build it in IDE and ran it, it runs fine.
I wanted to make it an exe through command line compiler(why, I need
to do some additional work) to I did a build in IDE and took the
compiler parameters and wrote a batch program to create the exe. It
compiled successfully and created the exe. But when try to run it I
get the error that Window1.xaml not found.

I have 2 part question;
1. What is the correct way to create single exe that I can distribute
it to the client, without giving all the xaml files?
2. I did find couple of tools from some blogs like ac.exe or xamlc.exe
to convert the xaml to baml. But even if I convert it to baml how can
I add it to the exe file?

Thanks.
For time being I converted the app to WinForm and everything works,
hopefully someone will shed some light into XAML into binary.
Mar 28 '08 #2
"CSharper" <cs******@gmx.comwrote in message
news:ab**********************************@a70g2000 hsh.googlegroups.com...
Please tell me what am I doing wrong in the following;

I have a WPF program that I build it in IDE and ran it, it runs fine.
I wanted to make it an exe through command line compiler(why, I need
to do some additional work) to I did a build in IDE and took the
compiler parameters and wrote a batch program to create the exe. It
compiled successfully and created the exe. But when try to run it I
get the error that Window1.xaml not found.

I have 2 part question;
1. What is the correct way to create single exe that I can distribute
it to the client, without giving all the xaml files?
2. I did find couple of tools from some blogs like ac.exe or xamlc.exe
to convert the xaml to baml. But even if I convert it to baml how can
I add it to the exe file?

Thanks.


The exe doesn't need xaml file at run time. IMO you are dynamically loading
Windows1.xaml in code, but it's hard to tell for sure without seeing any
code.
Willy.

Mar 28 '08 #3
On Mar 28, 1:20*pm, "Willy Denoyette [MVP]"
<willy.denoye...@telenet.bewrote:
"CSharper" <cshar...@gmx.comwrote in message

news:ab**********************************@a70g2000 hsh.googlegroups.com...


Please tell me what am I doing wrong in the following;
I have a WPF program that I build it in IDE and ran it, it runs fine.
I wanted to make it an exe through command line compiler(why, I need
to do some additional work) to I did a build in IDE and took the
compiler parameters and wrote a batch program to create the exe. It
compiled successfully and created the exe. But when try to run it I
get the error that Window1.xaml not found.
I have 2 part question;
1. What is the correct way to create single exe that I can distribute
it to the client, without giving all the xaml files?
2. I did find couple of tools from some blogs like ac.exe or xamlc.exe
to convert the xaml to baml. But even if I convert it to baml how can
I add it to the exe file?
Thanks.

The exe doesn't need xaml file at run time. IMO you are dynamically loading
Windows1.xaml in code, but it's hard to tell for sure without seeing any
code.

Willy.- Hide quoted text -

- Show quoted text -
I created a simple WPF project nothing in it and then I took the
compiler command from the output tab and try to build the exe from the
command line. It compiled properly but when Ran the exe, it is looking
for xaml. I did read some more and found out that if I use MSBuild to
build the wpf application then the XAML is converted and put it in the
exe otherwise you need xaml.
Thanks.
Mar 31 '08 #4
"CSharper" <cs******@gmx.comwrote in message
news:7c**********************************@a22g2000 hsc.googlegroups.com...
On Mar 28, 1:20 pm, "Willy Denoyette [MVP]"
<willy.denoye...@telenet.bewrote:
"CSharper" <cshar...@gmx.comwrote in message

news:ab**********************************@a70g2000 hsh.googlegroups.com...


Please tell me what am I doing wrong in the following;
I have a WPF program that I build it in IDE and ran it, it runs fine.
I wanted to make it an exe through command line compiler(why, I need
to do some additional work) to I did a build in IDE and took the
compiler parameters and wrote a batch program to create the exe. It
compiled successfully and created the exe. But when try to run it I
get the error that Window1.xaml not found.
I have 2 part question;
1. What is the correct way to create single exe that I can distribute
it to the client, without giving all the xaml files?
2. I did find couple of tools from some blogs like ac.exe or xamlc.exe
to convert the xaml to baml. But even if I convert it to baml how can
I add it to the exe file?
Thanks.

The exe doesn't need xaml file at run time. IMO you are dynamically
loading
Windows1.xaml in code, but it's hard to tell for sure without seeing any
code.

Willy.- Hide quoted text -

- Show quoted text -
I created a simple WPF project nothing in it and then I took the
compiler command from the output tab and try to build the exe from the
command line. It compiled properly but when Ran the exe, it is looking
for xaml. I did read some more and found out that if I use MSBuild to
build the wpf application then the XAML is converted and put it in the
exe otherwise you need xaml.
Thanks.
Yep, you need to convert the xaml to a cs file, before you can compile the
project, this translation is done by an msbuild step.

Willy.

Mar 31 '08 #5
On Mar 31, 5:55*pm, "Willy Denoyette [MVP]"
<willy.denoye...@telenet.bewrote:
"CSharper" <cshar...@gmx.comwrote in message

news:7c**********************************@a22g2000 hsc.googlegroups.com...
On Mar 28, 1:20 pm, "Willy Denoyette [MVP]"

<willy.denoye...@telenet.bewrote:
"CSharper" <cshar...@gmx.comwrote in message
news:ab**********************************@a70g2000 hsh.googlegroups.com...
Please tell me what am I doing wrong in the following;
I have a WPF program that I build it in IDE and ran it, it runs fine.
I wanted to make it an exe through command line compiler(why, I need
to do some additional work) to I did a build in IDE and took the
compiler parameters and wrote a batch program to create the exe. It
compiled successfully and created the exe. But when try to run it I
get the error that Window1.xaml not found.
I have 2 part question;
1. What is the correct way to create single exe that I can distribute
it to the client, without giving all the xaml files?
2. I did find couple of tools from some blogs like ac.exe or xamlc.exe
to convert the xaml to baml. But even if I convert it to baml how can
I add it to the exe file?
Thanks.
The exe doesn't need xaml file at run time. IMO you are dynamically
loading
Windows1.xaml in code, but it's hard to tell for sure without seeing any
code.
Willy.- Hide quoted text -
- Show quoted text -

I created a simple WPF project nothing in it and then I took the
compiler command from the output tab and try to build the exe from the
command line. It compiled properly but when Ran the exe, it is looking
for xaml. I did read some more and found out that if I use MSBuild to
build the wpf application then the XAML is converted and put it in the
exe otherwise you need xaml.
Thanks.

Yep, you need to convert the xaml to a cs file, before you can compile the
project, this translation is done by an msbuild step.

Willy.- Hide quoted text -

- Show quoted text -
Thanks. We use NAnt and we do not use MSBuild so I am kind of stuck.
But it is ok. Thanks.
Apr 1 '08 #6

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
by: andrea valle | last post by:
Hi to all, I need to run a program from inside python (substantially, algorithmic batch processing). I'm on mac osx 10.3.8 with python 2.3 framework and macpython. Trying to use exec*, I...
7
by: Ken Innes | last post by:
I am trying to write a little program that can be run as a Windows program or as a command line program. I'm really not sure the best way to do this, so what I came up with so far was to check for...
12
by: Rhino | last post by:
I am having an odd problem: the sqlj command on my system doesn't work. I am running DB2 (LUW) V8 (FP8) on WinXP. I haven't done an sqlj program since Version 6 of DB2 (LUW) so I checked the...
3
by: Double Echo | last post by:
Hi all, I'm using PHP 4.4.2, and use PHP on both the command-line and the web. I am running PHP on SuSE 10 Linux , in a VMware 5.5 workstation, using Apache 2.0.55 , on my Dell laptop. ...
40
by: raphfrk | last post by:
I have a program which reads in 3 filenames from the command line prog filename1 filename2 filename3 However, it doesn't work when one of the filenames has spaces in it (due to a directory...
3
by: jlw16 | last post by:
Hello, I’m trying to use my vbs script to get a command line argument for a file which will need to be opened through QuickTestPro. Below are the commands I’m using: Dim qt_file 'As String ->...
2
by: Jim | last post by:
Hello, I need a program that will traverse a directory tree to ensure that there are unix-style line endings on every file in that tree that is a text file. To tell text files from others I...
51
by: Ojas | last post by:
Hi!, I just out of curiosity want to know how top detect the client side application under which the script is getting run. I mean to ask the how to know whether the script is running under...
7
by: Jwe | last post by:
Hi, I've written a program which has both a command line interface and Windows form interface, however it isn't quite working correctly. When run from command line with no arguments it should...
7
by: Kevin Vogler | last post by:
I'm trying to programatically run an app. The command line syntax is: "C:\Program Files\WinSCP3\WinSCP3.exe" -script=myscript.txt and it works as intended. In code, I have this Dim myProc As...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.