|
I have a solution with several projects. In VS, I have my host project set as startup for Debugging in [IIS Express], but I want to make sure that when I check into my git repository and a build is triggered in Jenkins, it will always build my test project.
Is there something I can add to the MSBuild script in my sln file to instruct that I *always* want the test assembly to be built?
Something that I'm noticing is that if I change the startup project in Visual Studio and commit the sln file, whenever an automated build triggers in Jenkins, it only builds the "current" project.
Any idea how to override this behavior? I want the Jenkins build to build the same artifacts every time and I don't want tinkering in VS to impact the automated build (unless their change actually breaks it)
[Edit]
...the gist of this is that I have my specs.csproj file set up with
<OutputPath>bin\Debug\</OutputPath>
for a Debug build and
<OutputPath>bin\Release</OutputPath>
for a Release build. But the automated build does not output anything to the bin folder for this project.
If I trigger a build of the project manually in VS, everything works as expected.
"I need build Skynet. Plz send code"
modified 14-Apr-16 16:30pm.
|
|
|
|
|
Awww...son of a crap. No idea how this happened, but Jenkins was generating falsely succeeding builds. This is an "old new" ci server (early in the config but I haven't visited it in 8 or 9 months)
I had installed the MSBuild plug in but hadn't handled the config bug (you have to configure the job with the folder specified in the plug-in sans executable, but you have to go back and edit the value to point the agent to the actual executable) I also had forgotten to specify my MSBuild Agent in the project's job, but the build was succeeding on checkin. I have no idea how Jenkins was using MSBuild to build when I hadn't pointed the MSBuild plugin to the executable, but fixing this fixed the problem.
C:/server.ci/baz.inga/baz.inga.resources.sln
/t:build /p:PlatformTarget=x86 /p:Configuration=Release
...and everything builds just fine.
When did Jenkins start building MSBuild straight out of the box?
...In fact, when did it start checking out of a git repository with no polling trigger?
These were what really confused me.
"I need build Skynet. Plz send code"
|
|
|
|
|
Basically I have an app (test.exe) and it is associated with a file extension (.txt) Now if I double click a .txt file it opens the file - great. However if the app is already open and I click another file of .txt type I want to close the previous app and open a new one. (don't want multiple windows)
The problem being that the apps have the same name etc - how do I close the previous app?
thanks
Nemo
|
|
|
|
|
Nemo1966 wrote: The problem being that the apps have the same name etc - how do I close the previous app? The name of the application is not unique. Open your task-manager, go to "View", "Select Columns", and add "Proces-Id".
Closing it could be done by sending a WM_CLOSE message, which would effectively not close the window if its document is dirty. Instead, it would open a dialog asking you whether you'd want to save changes.
Changing behaviour from outside an application is not very easy. Might be further complicated if there's difference in behaviour of different versions.
Bastard Programmer from Hell
If you can't read my code, try converting it here[^]
|
|
|
|
|
Get all the Process instances for your app name using Process.GetProcessesByName(). Then using the Process.GetCurrentProcess() method, the newly run instance of your app will have access to it's own Id. Go through the collection of Process objects you got and kill each one that doesn't have the same Id.
Documentation on the Process class can be found here[^].
|
|
|
|
|
Dave's solution will work nicely - but I wouldn't do it.
Instead, I'd check for an existing example of the app and if it exists, I'd activate it and close the new instance. I'd probably send the file info to the "old" app at the same time.
That way, you don't risk trying to kill an app with modified data and losing what the user input - which does generally have the effect of really annoying users...
Bad command or file name. Bad, bad command! Sit! Stay! Staaaay...
|
|
|
|
|
Thanks for the replies.
@OriginalGriff - the problem with that is that the new file does not get opened - How do you send the file info to the old app?
thanks
modified 14-Apr-16 15:18pm.
|
|
|
|
|
You need to send the information to the previous instance using some interprocess communication method. There are a variety of ways of doing it.
I don't have time to go into the details right now so have a look at these[^].
|
|
|
|
|
Bad command or file name. Bad, bad command! Sit! Stay! Staaaay...
|
|
|
|
|
Hi,
I am trying to load records to local IBM DB2 table using Load command: I am using below command:
load CLIENT from D:\Export\CONTROL.ixf of ixf lobs from /<Full Machine Name>/d:/Export/ modified by identityoverride replace keepdictionary into <table Name>(Col1,Col2) COPY YES TO /dd01/loadcopy/alis/
incomplete records copied with column mismatch error?
1. I did analysis and found that LOBS need full qualifies path and LOAD need to execute from server.
Is there any way I can load data from local drive using .ixf and .ixf.log files?
any help and direction on this please.
Thanks
modified 14-Apr-16 14:07pm.
|
|
|
|
|
This does not appear to be C# related, so you are unlikely to get an answer in this forum.
=========================================================
I'm an optoholic - my glass is always half full of vodka.
=========================================================
|
|
|
|
|
how is correct to use sendkeys send on selenium i tried this but isnt working
driver.FindElementByClassName("username").SendKeys(("Textbox.username.ConvertToString"));
modified 14-Apr-16 14:00pm.
|
|
|
|
|
SendKeys will only work by sending keys to the currently Active Window, not to a specific control.
Warning! If the user clicks on other windows in other applications SendKeys will NOT know it and just blindly send the keystrokes to whatever window currently has the focus.
Oh! "Isn't working" is not a problem description. What is it actually doing? What is expected? Under what circumstances? Any error messages? ....
|
|
|
|
|
yes i am trying to automate login process on a webpage - username - password, i have created windows form aplication all object with class in selenium clicks, but i wat when i type my username in textbox at winformaplication to be send in browser with selenium but isnt typing.
|
|
|
|
|
I'm assuming you're using Selenium Web Driver library. I've never used it so I can't tell you what's wrong.
Your better source of information would be a forum dedicated to Web Driver. They have links to these forums on their own Support page, here[^].
|
|
|
|
|
yes i am using selenium webdriver all is ok if i type
.Sendkeys("myusername") , but whe i try from windows form element textbox.username then try code
.Sendkeys(("Textbox.username")) its not sending them
|
|
|
|
|
and you didn't read a single thing I posted.
|
|
|
|
|
there is not a solution on selenium docs i just need the program to get from my winform application my username in textbox and set it to webpage
|
|
|
|
|
again, you didn't read a single thing I posted and didn't read what was on the page I linked to.
|
|
|
|
|
Anyway i solve my problem with that
driver.FindElementByClassName("username").SendKeys(username.Text);
|
|
|
|
|
create web Application are license key based
|
|
|
|
|
This does not make any sense at all. However, it may be that you are asking how to license a web application. There are many ways, I suggest googling for options and going with the option you like the best.
There are only 10 types of people in the world, those who understand binary and those who don't.
|
|
|
|
|
Allow access only for registered users and on user sign-up ask for a license key.
If the brain were so simple we could understand it, we would be so simple we couldn't. — Lyall Watson
|
|
|
|
|
|
Please don't throw shorthand headlines at us. Explain your thoughts in much more detail - we can't read your mind.
If the brain were so simple we could understand it, we would be so simple we couldn't. — Lyall Watson
|
|
|
|