project

How to embed an XSLT file in a .NET project to be included in the output .exe?

早过忘川 提交于 2019-12-04 21:31:10
问题 I have a simple C# Console App that reads in an XML file specified the the user, runs an XSLT transformation on it, and outputs the results. When I distribute my app to users, I want to distribute a single .EXE file. My source code consists of 3 files: the .csproj file, the .cs code file, and a .xslt stylesheet. How can I set up the csproj so the .xslt is "embedded" within the output and cannot be seen or modified by the end user? Seems easy, but I can't figure it out and Google isn't being

How to Create a VSCode Python Workspace?

允我心安 提交于 2019-12-04 19:19:33
I'm trying to setup python on Visual Studio Code on MacOS. I have Python 2.7 and 3.5 interpreters installed on my computer. When I attempted to create my first python file the import modules were not found. According to the various setup instructions I've seen I'm supposed to be able to configure for my interpreter in "workspace settings." But I'm not sure I have a workspace, where to find it or how it is created. When I go to the Command Palette and try to run Python: Select Workplace Interpreter I get an error that says, "Please open a workspace to select the Python Interpreter" When I go to

MVC and separate projects

本秂侑毒 提交于 2019-12-04 19:07:58
I am new to MVC. I'd like to have my data objects in a separate project from my main MVC project. Would I just move ALL the classes and files from my 'models' folder to my new all project, and then add a reference to the new data project in my MVC project? How would I then make used of the models, both in my controllers (still in the MVC project) as well as within my views? You are going in the right direction. In fact, for all but the most trivial projects, I like to have my model in a separate class library. And then, as you mentioned, you can reference the class library from your MVC

How do I “register” a new Module Type in an IntelliJ Plugin?

纵饮孤独 提交于 2019-12-04 17:49:27
问题 I am a beginner when it comes to IntelliJ plugin development but i want my plugin to register a new Module Type in the "New Project" / "New Module" windows. I already searched through the Documentation for plugin developers but wasn't able to find anything useful. I also looked at existing plugins like Kotlin and Scala which also add new Module types but I can't figure out how to get a finished ModuleType to show up in the dialogs mentioned above. What do I have to change in the plugin.xml

How do I set a system property for my project in sbt?

谁都会走 提交于 2019-12-04 17:48:33
问题 I'm sure I'm missing something really simple... I want to set the system property java.awt.headless to true for my sbt project. Reading the page on properties I think that I need to use system or systemOptional . In my project file I've tried things like: lazy val javaAwtHeadless = system[Boolean]("java.awt.headless") Setting it as a user property (e.g. lazy val javaAwtHeadless = property[Boolean] ) and setting the accompanying value in build.properties made the property visible in the sbt

How do you exclude a transitive project dependency in gradle

守給你的承諾、 提交于 2019-12-04 17:42:08
问题 given dependencies { compile project(':subproject') { transitive = false } } This does not work properly in gradle 1.3. (i.e. all dependencies are included from the subproject) Is this a bug or is there a different syntax for excluding project dependencies? 回答1: The shown syntax will add a new (so-called dynamic ) transitive property to the Project object, which, unless used somewhere else, won't have any effect. You'll get a warning that dynamic properties have been deprecated, which is a

Target location for project “ ” already exists, can not move project

岁酱吖の 提交于 2019-12-04 17:24:00
when I am trying to share my project with git repository getting exception like this "Target location for project " " already exists, can not move project" Writing an answer because I tried many options suggested in many similar questions but none worked. Then I did it manually with following steps that worked, and these steps will work for any Eclipse version : Goto the Eclipse workspace in the file system and copy the project from there and paste it in some other location in your file system. This will serve as a backup. Goto your Eclipse and then right click on the project and click delete.

Error running git“Cannot run program ”git\": error=2 [duplicate]

萝らか妹 提交于 2019-12-04 16:24:59
This question already has an answer here: Android Studio Checkout Github Error “CreateProcess=2” (Windows) 9 answers I have this error on my Android Studio running with Mac OS 10.8.3, I've installed the github client but is not necesary... Any help? Thanks Check the path registered in Settings -> Version Control -> Git , in text box next to " Path to Git Executable ". It should reference a local installation of git. If the path mentioned there doesn't exist, that would explain the error message. Use your terminal and check the following. 1) Check if you have installed git git --version You

How to convert IntelliJ project to Eclipse?

坚强是说给别人听的谎言 提交于 2019-12-04 16:13:23
问题 I have one IntelliJ project and I want to open it in Eclipse, so what should I do? 回答1: There is an export to eclipse option in Intellij Under file menu. This option will generate you the necessary .project and .classpath files that will be used by eclipse. Personally, I would remove any IDE dependencies using some dependency management systems like Maven or Apache IVY. ( Is system the right term?) 回答2: I had the same issue and (I don't have Intellij) but doc_180's comment pointed me in the

What does the ic_launcher-web.png in my project root do?

走远了吗. 提交于 2019-12-04 14:54:43
问题 Unbelievably enough, I couldn't find an answer when Googling for this very basic question! I noticed that since I upgraded from Eclipse Helios to Eclipse Juno and updated the Android SDK, Eclipse places a file called ic_launcher-web.png in the project root whenever I create a new Android project. The file is the same as the application icon selected in the project creation dialog, but what does it do? As mentioned, it's in the project root, not in any of the /res/ folders. So is it included