|
Hello, I have the feeling this question can become a discussions because there is a lot of parameters that can be change and I don't know what to do.
I'm trying to setup a azure pipeline. I already did this in the past but with template and not for a .NET Core web application. It was easy because I could use a template. For some reason, here, I could not chose any template. The Azure Pipeline tool directly ask me to edit a yml file. Maybe because my repository is a local DevOps repository? I have no idea.
I followed this tutorial: https://docs.microsoft.com/en-us/azure/devops/pipelines/languages/dotnet-core?view=azure-devops and created this yml file:
# ASP.NET Core
# Build and test ASP.NET Core projects targeting .NET Core.
# Add steps that run tests, create a NuGet package, deploy, and more:
# https://docs.microsoft.com/azure/devops/pipelines/languages/dotnet-core
trigger:
- master
pool:
vmImage: 'Ubuntu-16.04'
variables:
buildConfiguration: 'Release'
steps:
# - script: dotnet build --configuration $(buildConfiguration)
# displayName: 'dotnet build $(buildConfiguration)'
\- task: DotNetCoreInstaller@0
inputs:
version: '2.2.202' # replace this value with the version that you need for your project
\- script: dotnet restore
\- task: DotNetCoreCLI@2
displayName: Build
inputs:
command: build
projects: '**/*.csproj'
arguments: '--configuration Release' # Update this to match your need
# do this after you've built your app, near the end of your pipeline in most cases
# for example, you do this before you deploy to an Azure web app on Windows
\- task: DotNetCoreCLI@2
inputs:
command: publish
publishWebProjects: True
arguments: '--configuration $(BuildConfiguration) --output $(Build.ArtifactStagingDirectory)'
zipAfterPublish: True
# - task: PublishBuildArtifacts@1
# inputs:
# ArtifactName: 'drop'
Here is my result: All is success except
<h1>##[section]Starting: DotNetCoreCLI</h1>
Task : .NET Core
Description : Build, test, package, or publish a dotnet application, or run a custom dotnet command. For package commands, supports NuGet.org and authenticated feeds like Package Management and MyGet.
Version : 2.150.1
Author : Microsoft Corporation
<h1>Help : <a href="https://go.microsoft.com/fwlink/?linkid=832194">More Information</a></h1>
##[error]No web project was found in the repository. Web projects are identified by presence of either a web.config file or wwwroot folder in the directory.
##[error]Project file(s) matching the specified pattern were not found.
##[section]Finishing: DotNetCoreCLI</pre>
[error]No web project was found in the repository. Web projects are identified by presence of either a web.config file or wwwroot folder in the directory. Also with .NET Core? Till now I can run my project locally with my Visual Studio whithout this config file. I don't get it.
PS: Can also someone tell me why the markdown is still active between my code tags? Impossible to display a correct verison of my yml file. # are transformed as title and - as list.
-- modified 23-Apr-19 0:24am.
|
|
|
|
|
Never met an asp.net project that didn't have a web.config file ... somewhere.
Quote: The web.config file configures the ASP.NET Core Module.
Host ASP.NET Core on Windows with IIS | Microsoft Docs
"(I) am amazed to see myself here rather than there ... now rather than then".
― Blaise Pascal
|
|
|
|
|
So why the publish tell me the config file is missing when I want to publish on my azure web app? Publish I can do manually with no error. Arrrgggg Microsoft please help. You example are wrong.
|
|
|
|
|
Bastien Vandamme wrote: Microsoft please help. You example are wrong Have you told them?
|
|
|
|
|
I HOPE this is the correct forum for this, apologize if it isn't i only joined 2 days ago so getting used to using this website.
So i'm learning C# myself by trying to make a small game, it won't be released but I will probably in the end use it as a class project next year. I'm starting now so I got plenty of time to learn basics and skills to prepare for next classes. So, I have a couple of questions I need to ask to clear things up and possibly maybe some links you can point me to, ideas OR even some demos I could use to teach myself, so I can learn what exactly i'm looking for, thanks.
Each game screen will be in the style of a form (no bigger than 10 forms) where I will add graphics etc, the player will be able to click certain objects to pick them up and in some cases pick more than one up. Think kinda like an hidden object type game where the player uses the mouse pointer to search around the screen for items and progress through the game.
1. I will make one form the item bag (called ItemsBag) so, how will I be able to pick up items on one form and have them display in the ItemsBag form?
2. Some items will be used for quests so stock pilling items will be a must, I'm also thinking a label to display amounts in stock with each time you click an item on one form it updates the amount on the ItemsBag form. Is there a tutorial for this type of stuff?
3. Talking to people (will only be a couple of people), I gather the use of a TextBox would be the best way to go with this and have the TextBox display different chat. I have the chat working so far where I click on a character and I get the first lot of talking sorted BUT how can I change text at different times? and also from a different form?
So say one person sends me to go pick something up in another form and I have it in my bag, it will change the text in that NPCs form. Is there some type of tutorial on how to do this? I'm thinking maybe in the NPCs TextBox code maybe something like having it check if I have the item(s) collected in the ItemsBag Form using IF statements, and check if amount is correct.. is that a correct way OR easiest way to go about this?
well i'm sure I will have plenty of more questions in the coming months as I learn, hopefully I haven't asked to much, I look forward to your replies, suggestions and help, thanks.
|
|
|
|
|
|
Thanks for your reply.
I'll take a look but I think it will be no good for me as I have to code completely in C# on its own and that's for Unity engine also i'll keep that link book marked though as I'd like to look into unity at a later date.
|
|
|
|
|
Not too many tutorials / games that do not incorporate a game engine. Mind you, the original Adventure source code is now available; so, no "engine".
Eric S. Raymond / open-adventure · GitLab
"(I) am amazed to see myself here rather than there ... now rather than then".
― Blaise Pascal
|
|
|
|
|
I can't think of a worse way to learn a language than to skip systematic study and go straight to trying to program some kind of game, with the idea (I assume) that you'll develop broad spectrum knowledge as you figure out what works ... for the game.
Now, if you have depth experience with other languages, with algorithms, with UI widget programming ... different story.
It's not a case of "hard work with no fun," either: there are very good books that will give you an overview, and many interesting programming challenges tailored for new students. Hands on experimentation while implementing these challenges will also give you ideas for your future game. Try: [^], or books by Jesse Liberty, and Chris Sells, or the Deitel textbook [^]. Search for the free book by Petzold.
«Where is the Life we have lost in living? Where is the wisdom we have lost in knowledge? Where is the knowledge we have lost in information?» T. S. Elliot
|
|
|
|
|
|
I am writing an app in which the user will - once only - input their file naming system for certain types of files. For example, they might save all project CAD models in the format
"Project12345-Name-Drawing-A"
where:-
Project is the same for all projects, i.e. a literal
12345 is the project number (variable length)
- is required
Name is the project name (variable length)
- is required
Drawing is the drawing name
- is required
A - might be the version and is required to be an upper case alphabetic character.
Or their system may be something completely different.
Once set up the software can only save files which comply with the standard naming format.
Sounds like a job for regex.
It also sounds like someone might have done it before - extracted the regex pattern from a given string.
(I'm assuming that the initial setup would require each character to be tagged in some way)
Any suggestions?
|
|
|
|
|
ormonds wrote: Or their system may be something completely different. Which makes it somewhat difficult to create a regex for every possible situation.
|
|
|
|
|
ormonds wrote: Any suggestions? Most modern games let you save the file without having to worry about filename-restrictions. They do this by asking for a string from the user to identify the file (a caption), and generating a save-file name that gets associated with that caption. Some will even simulate folders or categories
Gives the advantage that the user no longer directly interacts with the filesystem, is no longer responsible for giving a "valid" filename (but any string he/she chooses), and gives the enduser a bit more flexibility.
Bastard Programmer from Hell
If you can't read my code, try converting it here[^]
"If you just follow the bacon Eddy, wherever it leads you, then you won't have to think about politics." -- Some Bell.
|
|
|
|
|
You're better off with a "dictionary" that indexes all the (generated) files names with properties worth tracking; instead of trying to force a "file name standard" which always seems to fall short; or drives users mad.
"(I) am amazed to see myself here rather than there ... now rather than then".
― Blaise Pascal
|
|
|
|
|
The only name restriction you should have (if any) is the file extension. To enforce this, simply append your extension to whatever the user enters for a filename. After that, who really cares what the filename is, as long as it's got the correct extension for your app.
".45 ACP - because shooting twice is just silly" - JSOP, 2010 ----- You can never have too much ammo - unless you're swimming, or on fire. - JSOP, 2010 ----- When you pry the gun from my cold dead hands, be careful - the barrel will be very hot. - JSOP, 2013
|
|
|
|
|
Excepting of course there will be character restrictions.
|
|
|
|
|
FFS, I assumed that wouldn't even have to be said.
".45 ACP - because shooting twice is just silly" - JSOP, 2010 ----- You can never have too much ammo - unless you're swimming, or on fire. - JSOP, 2010 ----- When you pry the gun from my cold dead hands, be careful - the barrel will be very hot. - JSOP, 2013
|
|
|
|
|
lol...not in my experience. Once they start messing with regexes all normal expectations go out the window. They tend to allow things they shouldn't or fail to disallow others. Even presuming they get the regex right the first time. I have seen multiple cases where people didn't even understand what a character class in a regex was.
As one ready example just do a general search for people looking to make a 'easy' regex to do email validation.
|
|
|
|
|
Thank you. The app is an extension of one written for my own company where we have rules around how BIM files can be named. It seemed to me that the app might be useful for others.
You are quite right, there needn't be any rules, just a common location for saving such files.
|
|
|
|
|
ormonds wrote: It also sounds like someone might have done it before - extracted the regex pattern from a given string.
...
Any suggestions?
1. Don't do that.
2. Allow, but do not require them to enter a regex. The problem with this is that either you must carefully validate that (limit their regex) or you run the risk of allowing them to entire something that could be valid but could have serious problems (read the book "Mastering Regular Expressions".)
3. They can submit a regex to the operations team. They validate it and if ok enter it in for the account via a Operations only option.
|
|
|
|
|
Hi,
I would not use Regex at all. Instead, have the filename pattern specified as a string where some special codes are allowed, and will be replaced by their actual value.
Your example could be defined by "Project{P}-{N}-{D}-{V}.dat" , and now your code should replace
{P} by the project name
{N} by the project number
{D} by the drawing number
{V} by the version number/letter
which basically takes four calls to string.Replace() , where you:
1. may or may not enforce these codes to be present;
2. may or may not allow for case-insensitivy when looking for those codes;
3. must take care of avoiding illegal filenames; you may have to create a project name clone
that does not contain any character that would be unacceptable in a file name.
|
|
|
|
|
Write a console program in <b>C#</b> to print out 5 verses
<b>Please provide two solutions if you can, one using polymorphysm and one with .</b>
-- modified 21-Apr-19 10:03am.
|
|
|
|
|
We aren't here to do your work for you.
If you want someone to write your code, you have to pay - I suggest you go to Freelancer.com and ask there.
But be aware: you get what you pay for. Pay peanuts, get monkeys.
The idea of "development" is as the word suggests: "The systematic use of scientific and technical knowledge to meet specific objectives or requirements." BusinessDictionary.com
That's not the same thing as "have a quick google and give up if I can't find exactly the right code".
So either pay someone to do it, or learn how to write it yourself. We aren't here to do it for you.
Sent from my Amstrad PC 1640
Never throw anything away, Griff
Bad command or file name. Bad, bad command! Sit! Stay! Staaaay...
AntiTwitter: @DalekDave is now a follower!
|
|
|
|
|
If you can't answer your own interview questions (and this assignment is not very difficult at all), maybe you don't deserve to get the job you're interviewing for.
|
|
|
|
|
Hi,
I'm sure integrating this[^] will get you some bonus points.
|
|
|
|