How to declare variable in solution file for use in project files.
Hi Folks,
Apologies if this is not the right place to ask, but I would like to declare a variable in my solution file that can used by all of the projects (prof files) in that solution.
More specifically in the project files, references are stored using relative paths which cause issues if they don't exist. I would like to replace the relative paths with a variable set in the solution file that can easily be changed when the solution is
built in a different location.
So I would like to replace "../../../SomeProject" with "$(SomeLocation)/SomeProject" but set the $(SomeLocation) in the solution file.
Regards
Andy
Hello Andy,
Here is a common sln file:
Microsoft Visual Studio Solution File, Format Version 12.00
# Visual Studio 2013
VisualStudioVersion = 12.0.30723.0
MinimumVisualStudioVersion = 10.0.40219.1
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "wpf_EntityFramework", "wpf_EntityFramework\wpf_EntityFramework.csproj", "{A282940A-5F76-4FF8-9568-8B7D14133259}"
EndProject
Global
GlobalSection(SolutionConfigurationPlatforms) = preSolution
Debug|Any CPU = Debug|Any CPU
Release|Any CPU = Release|Any CPU
EndGlobalSection
GlobalSection(ProjectConfigurationPlatforms) = postSolution
{A282940A-5F76-4FF8-9568-8B7D14133259}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{A282940A-5F76-4FF8-9568-8B7D14133259}.Debug|Any CPU.Build.0 = Debug|Any CPU
{A282940A-5F76-4FF8-9568-8B7D14133259}.Release|Any CPU.ActiveCfg = Release|Any CPU
{A282940A-5F76-4FF8-9568-8B7D14133259}.Release|Any CPU.Build.0 = Release|Any CPU
EndGlobalSection
GlobalSection(SolutionProperties) = preSolution
HideSolutionNode = FALSE
EndGlobalSection
EndGlobal
And the Global Interface in the solution file is actually used for Visual Stuido add-ins. To know details, please read the following MSDN article:
1. Persisting Information in Projects and Solutions
Here you can find "If the Globals object is associated with the
Solution2 object, then the value persists in the .sln file. These values are persisted when the solution file is saved."
2.
Solution2 Interface
It's about the solution interface.
As you can see although they may save something to your solution file, it is not intended for you to use it in your project.
What's your projec type and can you alter to use some common ways?
For example:
1. If it is in project level, set your value public so that all classes can access the value.
2. Or you can choose to create a xml/text file or any file that you can read by code, and then read the value out from that file.
It will be much better than thinking about set value in the solution file.
Best regards,
Barry
We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
Click
HERE to participate the survey.
Similar Messages
-
How To Access Variables In Process Model For Use In Main Sequence
Hi everyone, in my sequence file I callback the PreUUT sequence file. I want to be able to use one of the local variables I assign in this callback sequence in my main sequence. In my main sequence this variable will trigger if I should run some tests or not in my main sequence. Is this possible? How would I do this?
Thanks so much!U need to make a parameter in your Callback, parameters are seen outside of sequences, then in PreUUT u will make statement to update parameter, or use the parameter in your callback directly
Parameters.MyPara=Locals.MyLoc
etc -
How to import WMV file for use in adobe programs, especially After Effects and/or Premier?
I have the latest adobe creative cloud and i'm using Mac 10.8.2
My client gave me a wmv file that she wants some people blurred out in the background but when I go to import the media, it's greyed out. I'm assuming that After Effects will be the best solution for this, but maybe there is another way.
I can purchase a video converter and convert it to .mov but that costs extra money that I don't want to spend just to do this one project. -
How does one change the font size for folders and/or file lists in the Bookmarks Library?
How does one change the font size for folders and/or file lists in the '''Bookmarks''' Library?
Since the upgrade to version 9.0.1 of Firefox, the Bookmarks feature changes are confusing me. They seem to be confusing themselves as well. The list of bookmarks has changed. The font size is so small that my aging eyes cannot read it without fogging the screen with my breath. Some folders are out of alphabetical order (where I know they were previously good), and some are missing altogether (folders to which I frequently add references).
As for missing or deranged files or folders, was there something that I should have done or now need to do to recover those after the upgrade (or before)?
With regard to font size,
1. there is no “Edit Bookmarks” or like option to edit the list in this version
2. the “zoom” option in the “view” list of functions is greyed out when in “Show All Bookmarks” window
3. expanding the browser window has no effect on font size
4. “Preferences” settings for font size has no effect in that window either, including advanced settings
5. “Help” offers none that I can find.
Can any of you Help?!?Maybe this extension helps:
*Theme Font & Size Changer: https://addons.mozilla.org/firefox/addon/theme-font-size-changer/ -
___ How do I convert an Ai logo to a .dst file for use in embroidery?
Is there an easy way?
Thanks,
HughLike so perhaps:
http://www.embroideryi2.com/adobe
Took 5 seconds to search on Google.
Mylenium -
How to create a .jar file for the BPEL project
hi all,
how can i create a .jar file for my BPEL project, i am trying to deploy the project but getting an error :
"Error: [Error ORABPEL-10902]: compilation failed [Description]: in "C:\OraBPELPM\integration\jdev\jdev\mywork\Workspace_BPELDemo\BPEL_Report\BPEL_Report.bpel", XML parsing failed because "". [Potential fix]: n/a. "
and when doubel cliking on this error Jdev take me to the beginning of the ".bpel" file.
I 'm really stuck in here i am not able to deploy the process!
Thanks,
RanaRana:
If you haven't already, I would post this question in the BPEL forum. I would expect a much better turnaround there.
Johnny Lee -
How to declare variables in standard text - so10 t.code
Hello Friends,
How to declare variables in standard text - so10 t.code? Your response will be appreciated much.
Thanks
SriFor Script & Smartform Text - &VAR&
-
How do I share an iMovie file for use on 1st or 2nd generation Apple TV
How do I share an finished imovie file for use on 1st or 2nd generation apple TV?
I shared my finished movie in I Tunes but it doesnt show up on my Gen 1 apple tv or my gen 2 Apple TV. The sharing process indicates that the movie is compatable with gen 3 Apple TV.
Carl -
Hi everyone! does anyone know how to convert .AVI files for using in iMovie without losing the original clip time and date? Handbrake, MPEG Streamclip and Evon all replace the original timecode with the date of modification. This is very frustrating when you are trying to keep the chronology right. I know that if you upload the files to iMovie from one device the chronology isn't a problem, but I'm adding video files from a couple of iPhones and a couple of camcorders. any help much appeciated.
paulHi everyone! does anyone know how to convert .AVI files for using in iMovie without losing the original clip time and date? Handbrake, MPEG Streamclip and Evon all replace the original timecode with the date of modification. This is very frustrating when you are trying to keep the chronology right. I know that if you upload the files to iMovie from one device the chronology isn't a problem, but I'm adding video files from a couple of iPhones and a couple of camcorders. any help much appeciated.
paul -
How can i don't save a flash file for a temporary internet files
i already use html file in meta tag...
but still saving file ..
so how can i don't save a flash file for a temporary internet files??i don't understand.
post your message in your native language. i can use the forum translation tool to (usually) understand your question. -
How do I export v-card formatted files for use with either Numbers or Excel?
How do I export v-card formatted files for use with either Numbers or Excel?
Did you open Automator and just look around?
Actions are listed in the left pane.
You drag them into the workflow on the right in the order you need to process the items that you want.
If this is a on-off requirement, just make a Workflow. If you plan to use it often, make it an Application.
If you want to select the contacts you want to export, use a get Selected action. You'd then select the contacts in Contacts App before running the workflow.
I'm not on a Mac to take screenshots, so you'll have to look at Automator's help or google for more info. -
Is there an actual solution to "Unable to open project file"
This has happened to me so many times that it isn't funny. So many people have asked why their final cut project files are unable to open. I have tried all the suggestions such as deleting preferences, repair permissions, saving files often and separate project files with different versions, but there always seems to be one that doesn't open and usually several versions before that as well as the autosave files.
Basically I need to save all the time and check every few minutes to see if I am not losing anything, which is very annoying. Why does this happen? It doesn't happen in iMovie. It is very frustrating. Is there an actual solution or just work arounds? Is Apple aware of this problem? Can they do something about it?
PowerMac G5, iBook Mac OS X (10.4.9)Al,
Thanks for the reply. So how should my system setup be? I have searched tons of forums. Some say that FCE doesn't like transparent images and I have used transparent images, but that is one of the things it is supposed to do in order to create certain effects. Many forums say that the file gets corrupted and so should save often and save seperate project files such as version 1, 2, 3 and so forth, which I have done, but why do the files get corrupted? If the render files are the problem, how do I know and how do I solve the problem. Like I said I have searched this forum and many others and they all say the same thing, but I still don't know why it keeps happening and what the real solution is. -
How Attributes declared in Component level can be used in All the views
How Attributes declared in Component level can be used in All the views
For Example :
say : context type ref to if_wd_context_node.
is declared at component controller level and check box public is checked !!
How can we use this any view in same WDP Component..
For suppose : in this case
We want to get the ref of child node using above declared attribute..
How is it possible?
Say in detailYou can do this by doing the exact same like you did with the if_wd_context_node.
1. Define attribute in Comp Controller and set it PUBLIC.
2. Access the attribute over the reference of the comp controller, i.e. wd_this within the comp controller itself or wd_comp_controller within somewhere else in the component.
So if you have, lets say, this defined as attribute in your comp controller:
Z_MY_TABLE_REF [X] TYPE REF TO [X] PUBLIC CL_WD_TABLE.
And then you want to catch the reference into a local variable within a method or the like within a view:
DATA: lo_my_table_ref TYPE REF TO CL_WD_TABLE.
lo_my_table_ref = wd_comp_controller->z_my_table_ref.
Lekha has already said so as well, I don't really understand where the problem is
Cheers, Lukas -
Need to generate a Index xml file for corresponding Report PDF file.
Need to generate a Index xml file for corresponding Report PDF file.
Currently in fusion we are generating a pdf file using given Rtf template and dataModal source through Ess BIPJobType.xml .
This is generating pdf successfully.
As per requirement from Oracle GSI team, they need index xml file of corresponding generated pdf file for their own business scenario.
Please see the following attached sample file .
PDf file : https://kix.oraclecorp.com/KIX/uploads1/Jan-2013/354962/docs/BPA_Print_Trx-_output.pdf
Index file : https://kix.oraclecorp.com/KIX/uploads1/Jan-2013/354962/docs/o39861053.out.idx.txt
In R12 ,
We are doing this through java API call to FOProcessor and build the pdf. Here is sample snapshot :
xmlStream = PrintInvoiceThread.generateXML(pCpContext, logFile, outFile, dbCon, list, aLog, debugFlag);
OADocumentProcessor docProc = new OADocumentProcessor(xmlStream, tmpDir);
docProc.process();
PrintInvoiceThread :
out.println("<?xml version=\"1.0\" encoding=\"UTF-8\" ?>");
out.print("<xapi:requestset ");
out.println("<xapi:filesystem output=\"" + outFile.getFileName() + "\"/>");
out.println("<xapi:indexfile output=\"" + outFile.getFileName() + ".idx\">");
out.println(" <totalpages>${VAR_TOTAL_PAGES}</totalpages>");
out.println(" <totaldocuments>${VAR_TOTAL_DOCS}</totaldocuments>");
out.println("</xapi:indexfile>");
out.println("<xapi:document output-type=\"pdf\">");
out.println("<xapi:customcontents>");
XMLDocument idxDoc = new XMLDocument();
idxDoc.setEncoding("UTF-8");
((XMLElement)(generator.buildIndexItems(idxDoc, am, row)).getDocumentElement()).print(out);
idxDoc = null;
out.println("</xapi:customcontents>");
In r12 we have a privilege to use page number variable through oracle.apps.xdo.batch.ControlFile
public static final String VAR_BEGIN_PAGE = "${VAR_BEGIN_PAGE}";
public static final String VAR_END_PAGE = "${VAR_END_PAGE}";
public static final String VAR_TOTAL_DOCS = "${VAR_TOTAL_DOCS}";
public static final String VAR_TOTAL_PAGES = "${VAR_TOTAL_PAGES}";
Is there any similar java library which do the same thing in fusion .
Note: I checked in the BIP doc http://docs.oracle.com/cd/E21764_01/bi.1111/e18863/javaapis.htm#CIHHDDEH
Section 7.11.3.2 Invoking Processors with InputStream .
But this is not helping much to me. Is there any other document/view-let which covers these thing .
Appreciate any help/suggestions.
-anjani prasad
I have attached these java file in kixs : https://kix.oraclecorp.com/KIX/display.php?labelId=3755&articleId=354962
PrintInvoiceThread
InvoiceXmlBuilder
Control.javaYou can find the steps here.
http://weblogic-wonders.com/weblogic/2009/11/29/plan-xml-usage-for-message-driven-bean/
http://weblogic-wonders.com/weblogic/2009/12/16/invalidation-interval-secs/ -
Hello,
I am not able to locate the Jar files for using BRM API's. I have tried searching the forum and did not find the name or location from where I can get them. If they are available on the server I could ask the basis team to give me a copy. Any help would be greatly appreciated.
Regards
PreetamHi Adam,
I have created a New EJB Project for my proxy development. This is the usual way I develop proxies for any given service interface created in ESR. Now i am not sure how to create a dependency with the BRMS facade. If i find the jars i can add it as an external library when compiling.
Can you explain a bit more about what you ment by "developing the java proxy in a development component", how did you accomplish this when creating a proxy for a service interface?
http://help.sap.com/saphelp_nw73ehp1/helpdata/en/e2/3620cef55842cca4632664212f31b1/content.htm?frameset=%2Fen%2F81%2F097529e0e545e58bb2d7a34e4d0a2a%2Fframeset.htm
Maybe you are looking for
-
JBO-33001 bc4j.xcfg WHAT A FRUSTRATION !!
I have been browsing this site in order to find some solution this ever pending problem. I am using the JDEV 9.0.2.827 on linux with J2SDK 1.3.1. I have created one project for BC4J and one project for JSP client. Both of them using the wizards. I ha
-
Wacky problem with Frame label
I have a menu set up with three items. Menu item one has "gotoAndPlay("video"), menu item two has "gotoAndPlay("somethinghere") etc... My menu items two and three always jump to the correct frame label. I am having a problem with the first menu item.
-
Exit for extended batmas02.
Hi All, I have extended the batmas02 basic type. Does anyone know of an exit I can use to populate the extended segment? Regards, James.
-
How to install a new oracle 9i in the same server where a 8i is installed
Hello and sorry for been an inexperience dba. Now I need to install 9i oracle version in the same server (solaris os-5.9) where is previously installed a 8i. I'm reading the installation guide and I know that I have to make two different oracle home,
-
Pb to add a view from Siebel Tools to Pharma application
Hi, I'm just beginner of Siebel. I used a user guide to create my first project. I follow all the steps described, I created a new tab with 2 new views. When I compile my project, I can't find my view and so added it to my application before adding i