Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
O
openxt
Manage
Activity
Members
Labels
Plan
Issues
0
Issue boards
Milestones
Wiki
Code
Merge requests
0
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
msc
openxt
Commits
2722074e
There was an error fetching the commit references. Please try again later.
Commit
2722074e
authored
3 years ago
by
Recolic K
Browse files
Options
Downloads
Patches
Plain Diff
fix another csproj error in controlplane
parent
b80b5350
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
main.go
+1
-1
1 addition, 1 deletion
main.go
tools/csproj-to-5/main.go
+5
-0
5 additions, 0 deletions
tools/csproj-to-5/main.go
with
6 additions
and
1 deletion
main.go
+
1
−
1
View file @
2722074e
...
@@ -10,7 +10,7 @@ import (
...
@@ -10,7 +10,7 @@ import (
// Some options here. Would be improved in beta release.
// Some options here. Would be improved in beta release.
const
DEDUCT_PKGNAME_FROM_VARNAME
=
true
const
DEDUCT_PKGNAME_FROM_VARNAME
=
true
const
USE_PROJECT_NETVER_INSTEAD_OF_HINTPATH_NETVER
=
false
const
USE_PROJECT_NETVER_INSTEAD_OF_HINTPATH_NETVER
=
false
const
OPENXT_VERSION
=
"1.2-
2
"
const
OPENXT_VERSION
=
"1.2-
3
"
func
print_help_and_exit
()
{
func
print_help_and_exit
()
{
println
(
"Usage: openxt <subcommand> [options...]"
)
println
(
"Usage: openxt <subcommand> [options...]"
)
...
...
This diff is collapsed.
Click to expand it.
tools/csproj-to-5/main.go
+
5
−
0
View file @
2722074e
...
@@ -130,6 +130,11 @@ func main() {
...
@@ -130,6 +130,11 @@ func main() {
resultTxt
+=
line
+
"
\n
"
resultTxt
+=
line
+
"
\n
"
}
}
// patch: if the csproj has no <TargetFramework> and <TargetFrameworkVersion> at all, we must fix this error with a default targetFramework.
if
!
(
stringContainsInsensitive
(
resultTxt
,
"<TargetFramework>"
)
||
stringContainsInsensitive
(
resultTxt
,
"<TargetFrameworkVersion>"
))
{
stringReplaceOnceInsensitive
(
resultTxt
,
"<PropertyGroup>"
,
"<PropertyGroup><TargetFramework>net472</TargetFramework><GenerateTargetFrameworkAttribute>false</GenerateTargetFrameworkAttribute>"
)
}
err
=
ioutil
.
WriteFile
(
fname
,
[]
byte
(
resultTxt
),
0644
)
err
=
ioutil
.
WriteFile
(
fname
,
[]
byte
(
resultTxt
),
0644
)
panicErrorIfAny
(
err
,
"WriteFile "
+
fname
)
panicErrorIfAny
(
err
,
"WriteFile "
+
fname
)
}
}
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment